-
Notifications
You must be signed in to change notification settings - Fork 0
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
[github
] Workflow to automatically build and push etcd
binaries
#4
[github
] Workflow to automatically build and push etcd
binaries
#4
Conversation
69ae67e
to
e5253e0
Compare
e5253e0
to
93f0ec1
Compare
c961f09
to
e6112fc
Compare
0719df3
to
c0ed647
Compare
c0ed647
to
2683d78
Compare
57468ea
to
cecefea
Compare
7e49861
to
a97f6bc
Compare
a9e2f69
to
dc4eff0
Compare
e787af6
to
a3bd987
Compare
env: | ||
KUBE_BUILD_PLATFORM: ${{ matrix.platform }} | ||
- name: Build etcd | ||
run: REPOSITORY=https://github.com/${{ env.GITHUB_REPOSITORY}}.git ./scripts/build-binary ${{ env.RELEASE_VERSION }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was another script, ./scripts/release.sh
, that I tried to use - it didn't work.
If I supplied a custom tag like RELEASE_VERSION=v3.5.14-dd.16-aneesh-test
, it still would look for a branch name like release-3.5
. We seem to have a different branch naming scheme and I didn't want to change the code in ./scripts/release.sh
, so I found this script instead which builds the binaries for us.
If we're interested in changing our branch naming scheme, we can switch to ./scripts/release.sh
in a follow up PR, but for now, this works.
asset_path: ./_output/release-tars/etcd-${{ env.RELEASE_VERSION }}-${{ matrix.platform }}.${{ matrix.extension }} | ||
asset_name: etcd-${{ env.RELEASE_VERSION }}-${{ matrix.platform }}.${{ matrix.extension }} | ||
asset_content_type: application/tar+gzip | ||
addchecksum: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed to be separate b/c it relies on the output of the release
job and b/c it can't run with strategy.matrix
since it'll try and upload a file twice (which doesn't work).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not merge both.
Also do we need the checksum file at all ?
Or do we need the checksum file to be named SHA256SUMS ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also do we need the checksum file at all ?
We use it on our ansible playbook (specifically, this function) - I think it'd be good to keep.
I've changed the flow to now be:
- Build everything
- Define the build matrix to attach select artifacts to the release.
dee982f
to
e7d44a6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try this out and see if we're good.
Automates building and pushing
etcd
binaries whenever we create a new branch.