Skip to content

Commit

Permalink
update filenames in konflux release container
Browse files Browse the repository at this point in the history
Signed-off-by: Chaitanya Kandagatla <[email protected]>
  • Loading branch information
ckandag committed Oct 24, 2024
1 parent 862b072 commit d6ec77b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hack/build_release_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#Keeping it similar to ROSA official releases which only publish amd64 to mirror
#This list can be modified as needed if additional os or arch support is needed
archs=(amd64)
oses=(darwin windows linux)
oses=(darwin linux windows)

REL_VER=$(git describe --tags --abbrev=0 | sed "s/v//")
if [[ -z "$REL_VER" ]]; then
Expand All @@ -23,9 +23,9 @@ do
extension=".exe"
fi
GOOS=${os} GOARCH=${arch} go build -o /tmp/ocm_${os}_${arch} ./cmd/ocm
mv /tmp/ocm_${os}_${arch} ocm_v${REL_VER}${extension}
zip releases/ocm_${REL_VER}_${os}_${arch}.zip ocm_v${REL_VER}${extension}
rm ocm_v${REL_VER}${extension}
mv /tmp/ocm_${os}_${arch} ocm${extension}
zip releases/ocm_${os}_${arch}.zip ocm${extension}
rm ocm${extension}
done
done
cd releases && sha256sum *zip > ocm_${REL_VER}_SHA256SUMS
Expand Down

0 comments on commit d6ec77b

Please sign in to comment.