File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -701,7 +701,6 @@ jobs:
701
701
runs-on : ${{ github.repository_owner == 'coder' && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-latest' }}
702
702
env :
703
703
DOCKER_CLI_EXPERIMENTAL : " enabled"
704
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
705
704
steps :
706
705
- name : Checkout
707
706
uses : actions/checkout@v3
@@ -741,12 +740,9 @@ jobs:
741
740
--push \
742
741
build/coder_linux_amd64
743
742
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
-
747
743
# 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
750
746
751
747
- name : Prune old images
752
748
uses : vlaurin/action-ghcr-prune@v0.5.0
You can’t perform that action at this time.
0 commit comments