ci(main): tag both SHA and latest during build, push both in one step
Build and push / Build and push image (push) Successful in 28s
Build / Build and push image (push) Successful in 27s
CI / Test, vet, build (push) Successful in 2m18s

This commit is contained in:
Story Crater Bot
2026-08-21 21:00:36 -07:00
parent 9740334d24
commit abcc6dd4a9
+1 -5
View File
@@ -49,14 +49,10 @@ jobs:
docker build \
--build-arg "VERSION=${{ steps.sha.outputs.short_sha }}" \
-t "${IMAGE}:${{ steps.sha.outputs.short_sha }}" \
-t "${IMAGE}:latest" \
.
- name: Push
run: |
docker push "${IMAGE}:${{ steps.sha.outputs.short_sha }}"
docker tag "${IMAGE}:${{ steps.sha.outputs.short_sha }}" "${IMAGE}:latest"
docker push "${IMAGE}:latest"
- name: Report digest
run: |
docker inspect --format='{{index .RepoDigests 0}}' "${IMAGE}:${{ steps.sha.outputs.short_sha }}"