Debug pipeline

This commit is contained in:
2026-04-25 22:22:39 +02:00
parent f69a2d4fa2
commit d6a6150a7f

View File

@@ -73,27 +73,24 @@ jobs:
run: | run: |
set -euo pipefail set -euo pipefail
# Build via docker (uses dind via DOCKER_HOST) docker build --pull -t "${REGISTRY}/${IMAGE}:${VERSION}" .
docker build --pull \
-t "${REGISTRY}/${IMAGE}:${VERSION}" \
.
# Save image to OCI archive — this exports the layers to a tarball
# that skopeo can read directly, bypassing the docker socket
docker save "${REGISTRY}/${IMAGE}:${VERSION}" -o /tmp/image.tar docker save "${REGISTRY}/${IMAGE}:${VERSION}" -o /tmp/image.tar
# Push with skopeo from the archive # Pre-authenticate via skopeo login so it caches the basic-auth header
skopeo copy --dest-creds "$REG_USER:$REG_PASS" \ # in /run/containers/0/auth.json. Then copy with no creds — uses cache.
mkdir -p /run/containers/0
skopeo login \
--username "$REG_USER" \
--password "$REG_PASS" \
"${REGISTRY}"
skopeo copy \
"docker-archive:/tmp/image.tar" \ "docker-archive:/tmp/image.tar" \
"docker://${REGISTRY}/${IMAGE}:${VERSION}" "docker://${REGISTRY}/${IMAGE}:${VERSION}"
# Tag latest by copying within the registry (no rebuild needed)
skopeo copy \ skopeo copy \
--src-creds "$REG_USER:$REG_PASS" \
--dest-creds "$REG_USER:$REG_PASS" \
"docker://${REGISTRY}/${IMAGE}:${VERSION}" \ "docker://${REGISTRY}/${IMAGE}:${VERSION}" \
"docker://${REGISTRY}/${IMAGE}:latest" "docker://${REGISTRY}/${IMAGE}:latest"
- name: Tag git commit with version - name: Tag git commit with version
env: env:
VERSION: ${{ steps.version.outputs.version }} VERSION: ${{ steps.version.outputs.version }}