Skip to content

Commit 1bd7254

Browse files
committed
ci: publish Kepler binary on releases
This commit updates the release workflow to publish the Kepler binary when release is created. Currently we only publish the binary for Linux-amd64. Once we have multi-arch support, we can publish the binary for other platforms as well and update the workflow accordingly. Signed-off-by: vprashar2929 <[email protected]>
1 parent 725b13e commit 1bd7254

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/release.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,23 @@ jobs:
7272
shell: bash
7373
run: |
7474
mkdir -p helm-releases
75+
VERSION=${{ steps.version.outputs.version }}
76+
# Remove 'v' prefix from version
77+
CHART_VERSION=${VERSION#v}
7578
helm package manifests/helm/kepler -d helm-releases
79+
# Rename the helm chart to include 'helm' identifier
80+
mv helm-releases/kepler-${CHART_VERSION}.tgz helm-releases/kepler-helm-${CHART_VERSION}.tgz
81+
82+
- name: Build Kepler binary
83+
shell: bash
84+
run: |
85+
VERSION=${{ steps.version.outputs.version }}
86+
# Remove 'v' prefix from version
87+
VERSION=${VERSION#v}
88+
make build PRODUCTION=1
89+
mv bin/kepler-release bin/kepler
90+
# Currently the binary is built for linux-amd64 only
91+
tar -czvf bin/kepler-${VERSION}.linux-amd64.tar.gz bin/kepler
7692
7793
- name: Create GitHub Release
7894
uses: softprops/action-gh-release@v2
@@ -84,6 +100,7 @@ jobs:
84100
make_latest: true
85101
files: |
86102
helm-releases/*.tgz
103+
bin/*.tar.gz
87104
env:
88105
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89106

0 commit comments

Comments
 (0)