Enable leader election in the operator #1046
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Release Subctl devel | |
on: | |
push: | |
branches: | |
- devel | |
permissions: | |
contents: write | |
jobs: | |
release-subctl-on-push: | |
if: github.repository_owner == 'submariner-io' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
with: | |
fetch-depth: 0 | |
- name: Generate subctl version | |
run: | | |
echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV | |
echo "RELEASE=subctl-${GITHUB_REF##*/}" >> $GITHUB_ENV | |
- name: Generate the subctl release artifacts | |
run: make build-cross VERSION=${{ env.BRANCH }} | |
- name: Recreate the release with the updated artifacts | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release delete ${{ env.RELEASE }} -y || true | |
git push -d origin ${{ env.RELEASE }} || true | |
gh release create ${{ env.RELEASE }} dist/*.tar.xz --prerelease \ | |
--title "Cutting Edge: ${{ env.BRANCH }}" \ | |
--notes "Cutting edge binaries of \`subctl\` for '${{ env.BRANCH }}' branch, always updated to the latest merged code." \ | |
--target ${GITHUB_SHA} |