Skip to content

Commit 90c1647

Browse files
authored
ci: change ghcr.io/coder/coder-preview:main tag to use version names (#8938)
1 parent e704772 commit 90c1647

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/ci.yaml

+2-6
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,6 @@ jobs:
701701
runs-on: ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
702702
env:
703703
DOCKER_CLI_EXPERIMENTAL: "enabled"
704-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
705704
steps:
706705
- name: Checkout
707706
uses: actions/checkout@v3
@@ -741,12 +740,9 @@ jobs:
741740
--push \
742741
build/coder_linux_amd64
743742
744-
# Get commit sha to be used as package tag
745-
new_package_tag=$(gh api repos/coder/coder/commits/main | jq -r '.sha[0:7]')
746-
747743
# Tag image with new package tag and push
748-
docker tag ghcr.io/coder/coder-preview:main ghcr.io/coder/coder-preview:main-$new_package_tag
749-
docker push ghcr.io/coder/coder-preview:main-$new_package_tag
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
750746
751747
- name: Prune old images
752748
uses: vlaurin/action-ghcr-prune@v0.5.0

0 commit comments

Comments
 (0)