File tree 2 files changed +7
-1
lines changed 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 73
73
with :
74
74
release_name : ${{ steps.version.outputs.version }}
75
75
tag_name : ${{ github.ref }}
76
+ prerelease : ${{ contains(github.ref, 'rc') }} # Release candidates are marked as pre-releases
76
77
77
78
- name : Upload Helm Release Asset
78
79
uses : actions/upload-release-asset@v1
Original file line number Diff line number Diff line change 40
40
VERSION=$( ../scripts/version.sh)
41
41
BASE=ghcr.io/coder/coder-logstream-kube
42
42
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
44
49
fi
You can’t perform that action at this time.
0 commit comments