Debug pipeline

This commit is contained in:
2026-04-25 20:04:55 +02:00
parent e7d3fa3873
commit f3a1ae0267

View File

@@ -136,13 +136,28 @@ jobs:
VERSION: ${{ steps.version.outputs.version }}
run: |
set -euo pipefail
printf '%s' "$REG_PASS" \
| docker login "${REGISTRY}" -u "$REG_USER" --password-stdin
docker build \
--pull \
# Write docker auth config directly. This guarantees the Authorization
# header is sent on every request — including PATCH during blob
# upload — without depending on a credential store or `docker login`
# state. Resolves a known issue where docker-in-docker drops auth
# mid-push.
mkdir -p /tmp/docker-config
AUTH=$(printf '%s:%s' "$REG_USER" "$REG_PASS" | base64 -w 0)
cat > /tmp/docker-config/config.json <<EOF
{
"auths": {
"${REGISTRY}": {
"auth": "${AUTH}"
}
}
}
EOF
export DOCKER_CONFIG=/tmp/docker-config
docker build --pull \
-t "${REGISTRY}/${IMAGE}:${VERSION}" \
-t "${REGISTRY}/${IMAGE}:latest" \
.
-t "${REGISTRY}/${IMAGE}:latest" .
docker push "${REGISTRY}/${IMAGE}:${VERSION}"
docker push "${REGISTRY}/${IMAGE}:latest"