ci: publish the image built by the pipeline
ci / static (push) Successful in 2m6s
ci / test-3.12 (push) Successful in 2m49s
ci / test-3.13 (push) Successful in 3m18s
ci / image (push) Successful in 9s
ci / smoke (push) Successful in 10s
ci / publish (push) Successful in 6s

This commit is contained in:
omar committed 2026-11-28 21:13:38 +03:00
1 parent 186c21b775
commit c14f71be02
2 files changed
+10 -4

No files matched your search

+5 -4
View File
@@ -84,7 +84,6 @@ jobs:
docker build --pull --label "org.opencontainers.image.revision=$(git rev-parse HEAD)" \
-t "$IMAGE:${{ steps.meta.outputs.tag }}" .
docker image inspect "$IMAGE:${{ steps.meta.outputs.tag }}" --format '{{.Id}}'
docker save "$IMAGE:${{ steps.meta.outputs.tag }}" > /dev/null
- name: Record digest
run: echo "digest=$(docker image inspect "$IMAGE:${{ steps.meta.outputs.tag }}" --format '{{.Id}}')" >> "$GITHUB_OUTPUT"
id: digest
@@ -140,11 +139,13 @@ jobs:
- uses: actions/checkout@v4
- name: Log in with the package token
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.eeee.moe -u omar --password-stdin
- name: Push the immutable tag
- name: Push the immutable tag built above
run: |
set -euo pipefail
docker build -t "$IMAGE:${{ needs.image.outputs.tag }}" .
docker push "$IMAGE:${{ needs.image.outputs.tag }}"
image="$IMAGE:${{ needs.image.outputs.tag }}"
docker image inspect "$image" > /dev/null
docker push "$image"
docker image inspect "$image" --format '{{.RepoDigests}}'
- name: Move latest only if HEAD has not moved
run: |
set -euo pipefail