Debug pipeline

This commit is contained in:
2026-04-25 22:48:05 +02:00
parent 4296a70d51
commit 0bf4c6cf4c

View File

@@ -61,29 +61,22 @@ jobs:
fi fi
echo "version=${next}" >> "$GITHUB_OUTPUT" echo "version=${next}" >> "$GITHUB_OUTPUT"
- name: Install skopeo - name: Build and push image
run: |
apt-get update -qq && apt-get install -y -qq skopeo
- name: Push with skopeo debug
env: env:
REG_USER: ${{ secrets.REGISTRY_USERNAME }} REG_USER: ${{ secrets.REGISTRY_USERNAME }}
REG_PASS: ${{ secrets.REGISTRY_PASSWORD }} REG_PASS: ${{ secrets.REGISTRY_PASSWORD }}
VERSION: ${{ steps.version.outputs.version }} VERSION: ${{ steps.version.outputs.version }}
run: | run: |
set -euo pipefail set -euo pipefail
printf '%s' "$REG_PASS" \
docker build --pull -t "${REGISTRY}/${IMAGE}:${VERSION}" . | docker login "${REGISTRY}" -u "$REG_USER" --password-stdin
docker save "${REGISTRY}/${IMAGE}:${VERSION}" -o /tmp/image.tar docker build \
--pull \
AUTH=$(printf '%s:%s' "$REG_USER" "$REG_PASS" | base64 -w0) -t "${REGISTRY}/${IMAGE}:${VERSION}" \
mkdir -p /tmp/auth -t "${REGISTRY}/${IMAGE}:latest" \
printf '{"auths":{"%s":{"auth":"%s"}}}\n' "$REGISTRY" "$AUTH" > /tmp/auth/auth.json .
docker push "${REGISTRY}/${IMAGE}:${VERSION}"
# --debug prints HTTP request/response details docker push "${REGISTRY}/${IMAGE}:latest"
skopeo --debug copy --authfile /tmp/auth/auth.json \
"docker-archive:/tmp/image.tar" \
"docker://${REGISTRY}/${IMAGE}:${VERSION}" 2>&1 | tail -100
- name: Tag git commit with version - name: Tag git commit with version
env: env: