Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Commit 74925a9

Browse files
authored
Use the correct helm chart version when creating GH release (#54)
Similar to #53, now that the Helm chart version is different from the release version, we need to use the Helm chart version when generating checksums to upload to the releases page during a release. Signed-off-by: Alex Leong <alex@buoyant.io>
1 parent b400206 commit 74925a9

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
path: build-archives
138138
- name: Generate SHA256SUMS
139139
run: |
140-
./bin/generate-sha256sums $TAG
140+
./bin/generate-sha256sums $TAG $CHART_VERSION
141141
- id: set-env
142142
run: echo "::set-output name=tag::$(echo $TAG)"
143143
- name: Create release

bin/generate-sha256sums

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22

33
set -eu
44

5-
if [ $# -eq 1 ]; then
5+
if [ $# -eq 2 ]; then
66
tag=${1:-}
7+
chart_version=${2:-}
78
else
8-
echo "usage: ${0##*/} tag" >&2
9+
echo "usage: ${0##*/} tag chart_version" >&2
910
exit 64
1011
fi
1112

@@ -25,5 +26,5 @@ for os in $OS; do
2526
done
2627

2728
# generate for helm chart
28-
cp build-archives/helm/linkerd-smi-"$shorttag".tgz ./target/release
29-
openssl dgst -sha256 ./target/release/linkerd-smi-"$shorttag".tgz | awk '{print $2}' > "./target/release/linkerd-smi-$shorttag.tgz.sha256"
29+
cp build-archives/helm/linkerd-smi-"$chart_version".tgz ./target/release
30+
openssl dgst -sha256 ./target/release/linkerd-smi-"$chart_version".tgz | awk '{print $2}' > "./target/release/linkerd-smi-$chart_version.tgz.sha256"

0 commit comments

Comments
 (0)