Skip to content

Commit 6ded748

Browse files
authored
fix: update tag name for coder-preview image in ci.yaml (#8945)
1 parent 71ea5ac commit 6ded748

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -741,8 +741,9 @@ jobs:
741741
build/coder_linux_amd64
742742
743743
# Tag image with new package tag and push
744-
docker tag ghcr.io/coder/coder-preview:main ghcr.io/coder/coder-preview:main-$version
745-
docker push ghcr.io/coder/coder-preview:main-$version
744+
tag=$(echo "$version" | sed 's/+/-/g')
745+
docker tag ghcr.io/coder/coder-preview:main ghcr.io/coder/coder-preview:main-$tag
746+
docker push ghcr.io/coder/coder-preview:main-$tag
746747
747748
- name: Prune old images
748749
uses: vlaurin/action-ghcr-prune@v0.5.0

0 commit comments

Comments
 (0)