Skip to content

Commit 842091a

Browse files
author
Sunil Thaha
authored
Merge pull request #2240 from vprashar2929/ci-bin-release
ci: publish Kepler binary on releases
2 parents 725b13e + 1bd7254 commit 842091a

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)