Skip to content

ci: publish main commit tag to ghcr.io/coder/coder-preview #8897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Aug 4, 2023
Merged
Prev Previous commit
Next Next commit
use first 7 characters of sha for tag
  • Loading branch information
matifali committed Aug 4, 2023
commit 0b83713cd17a296ad4139778cd66d7a756a61cb2
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ jobs:
build/coder_linux_amd64

# Get commit sha to be used as package tag
new_package_tag=$(gh api /repos/coder/coder/commits/main | jq -r '.sha[:8]')
new_package_tag=$(gh api /repos/coder/coder/commits/main | jq -r '.sha[:7]')

# Tag image with new package tag and push
docker tag ghcr.io/coder/coder-preview:main ghcr.io/coder/coder-preview:main-$new_package_tag
Expand Down