Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create draft release automation #261

Merged
merged 5 commits into from
Nov 25, 2021
Merged

Conversation

shamsher31
Copy link
Contributor

@shamsher31 shamsher31 commented Nov 22, 2021

What this PR does / why we need it:
Resumption of #183

Which issue(s) this PR fixes:
Fixes #181

Additional information
Uses https://github.com/softprops/action-gh-release
Note: This needs to be tested carefully as it affects release artifacts and release notes.

Special notes for your reviewer
Tested with act https://github.com/nektos/act

$ act -j build
[Draft Release/build] 🚀  Start image=catthehacker/ubuntu:act-latest
[Draft Release/build]   🐳  docker run image=catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Draft Release/build]   🐳  docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root
[Draft Release/build]   🐳  docker cp src=/Users/shamshera/Projects/cluster-api-provider-bringyourownhost/. dst=/Users/shamshera/Projects/cluster-api-provider-bringyourownhost
[Draft Release/build]   🐳  docker exec cmd=[mkdir -p /Users/shamshera/Projects/cluster-api-provider-bringyourownhost] user=
[Draft Release/build] ⭐  Run Checkout
[Draft Release/build]   ✅  Success - Checkout
[Draft Release/build] ⭐  Run Set up Go
INFO[0001]   ☁  git clone 'https://github.com/actions/setup-go' # ref=v2 
[Draft Release/build]   🐳  docker cp src=/Users/shamshera/.cache/act/actions-setup-go@v2/ dst=/var/run/act/actions/actions-setup-go@v2/
[Draft Release/build]   🐳  docker exec cmd=[mkdir -p /var/run/act/actions/actions-setup-go@v2/] user=
[Draft Release/build]   🐳  docker exec cmd=[node /var/run/act/actions/actions-setup-go@v2/dist/index.js] user=
| Setup go stable version spec 1.16
| Successfully setup go version 1.16
[Draft Release/build]   ❓  ##[add-matcher]/run/act/actions/actions-setup-go@v2/matchers.json
| go version go1.16.10 linux/amd64

| GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3249229116=/tmp/go-build -gno-record-gcc-switches"
| 
[Draft Release/build]   ❓  ::endgroup::
[Draft Release/build]   ✅  Success - Set up Go
[Draft Release/build] ⭐  Run Build Release Artifacts
[Draft Release/build]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /Users/shamshera/Projects/cluster-api-provider-bringyourownhost/workflow/2] user=
| rm -rf _dist
| mkdir -p _dist
| go: creating new go.mod: module tmp

/Users/shamshera/Projects/cluster-api-provider-bringyourownhost/bin/kustomize build /Users/shamshera/Projects/cluster-api-provider-bringyourownhost/test/e2e/data/infrastructure-provider-byoh/v1beta1 --load_restrictor none > /Users/shamshera/Projects/cluster-api-provider-bringyourownhost/test/e2e/data/infrastructure-provider-byoh/v1beta1/cluster-template.yaml
| cp /Users/shamshera/Projects/cluster-api-provider-bringyourownhost/test/e2e/data/infrastructure-provider-byoh/v1beta1/cluster-template.yaml _dist/cluster-template.yaml
| sed -i -e 1,20d _dist/cluster-template.yaml
| cd config/manager && /Users/shamshera/Projects/cluster-api-provider-bringyourownhost/bin/kustomize edit set image gcr.io/k8s-staging-cluster-api/cluster-api-byoh-controller=projects.registry.vmware.com/cluster_api_provider_bringyourownhost/cluster-api-byoh-controller:refs/heads/draft-release
| /Users/shamshera/Projects/cluster-api-provider-bringyourownhost/bin/kustomize build config/default > _dist/infrastructure-components.yaml
| cp metadata.yaml _dist/metadata.yaml

Makefile Outdated Show resolved Hide resolved
.github/workflows/draft-release.yaml Show resolved Hide resolved
Makefile Show resolved Hide resolved
@shamsher31 shamsher31 requested a review from anusha94 November 24, 2021 07:56
Makefile Outdated Show resolved Hide resolved
Copy link
Contributor

@anusha94 anusha94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super useful PR. Thank you!

@anusha94 anusha94 merged commit 85f1600 into vmware-tanzu:main Nov 25, 2021
@shamsher31 shamsher31 deleted the draft-release branch November 25, 2021 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create GitHub workflow for Draft Release
4 participants