Debug pipeline

This commit is contained in:
2026-04-25 22:17:10 +02:00
parent c2ac8b4401
commit f69a2d4fa2

View File

@@ -73,20 +73,25 @@ jobs:
run: | run: |
set -euo pipefail set -euo pipefail
# Build the image (docker daemon doesn't need auth for the build) # Build via docker (uses dind via DOCKER_HOST)
docker build --pull \ docker build --pull \
-t "${REGISTRY}/${IMAGE}:${VERSION}" \ -t "${REGISTRY}/${IMAGE}:${VERSION}" \
-t "${REGISTRY}/${IMAGE}:latest" . .
# Push with skopeo — always sends auth credentials, bypasses # Save image to OCI archive — this exports the layers to a tarball
# docker's challenge-retry logic that breaks with anonymous /v2/. # that skopeo can read directly, bypassing the docker socket
# skopeo copy reads creds from --src-creds / --dest-creds. docker save "${REGISTRY}/${IMAGE}:${VERSION}" -o /tmp/image.tar
# Push with skopeo from the archive
skopeo copy --dest-creds "$REG_USER:$REG_PASS" \ skopeo copy --dest-creds "$REG_USER:$REG_PASS" \
"docker-daemon:${REGISTRY}/${IMAGE}:${VERSION}" \ "docker-archive:/tmp/image.tar" \
"docker://${REGISTRY}/${IMAGE}:${VERSION}" "docker://${REGISTRY}/${IMAGE}:${VERSION}"
skopeo copy --dest-creds "$REG_USER:$REG_PASS" \ # Tag latest by copying within the registry (no rebuild needed)
"docker-daemon:${REGISTRY}/${IMAGE}:latest" \ skopeo copy \
--src-creds "$REG_USER:$REG_PASS" \
--dest-creds "$REG_USER:$REG_PASS" \
"docker://${REGISTRY}/${IMAGE}:${VERSION}" \
"docker://${REGISTRY}/${IMAGE}:latest" "docker://${REGISTRY}/${IMAGE}:latest"
- name: Tag git commit with version - name: Tag git commit with version