Skip to content

Commit 2c90507

Browse files
committed
chore: add prerelease flag to release.yaml and build.sh
1 parent c390e75 commit 2c90507

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373
with:
7474
release_name: ${{ steps.version.outputs.version }}
7575
tag_name: ${{ github.ref }}
76+
prerelease: ${{ contains(github.ref, 'rc') }} # Release candidates are marked as pre-releases
7677

7778
- name: Upload Helm Release Asset
7879
uses: actions/upload-release-asset@v1

scripts/build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,10 @@ else
4040
VERSION=$(../scripts/version.sh)
4141
BASE=ghcr.io/coder/coder-logstream-kube
4242
IMAGE=$BASE:$VERSION
43-
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t "$IMAGE" -t $BASE:latest --push .
43+
# if version contains "rc" skip pushing to latest
44+
if [[ $VERSION == *"rc"* ]]; then
45+
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t "$IMAGE" --push .
46+
else
47+
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t "$IMAGE" -t $BASE:latest --push .
48+
fi
4449
fi

0 commit comments

Comments
 (0)