From 4296a70d517eb0538a796a321a8c31f67866175d Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 25 Apr 2026 22:34:48 +0200 Subject: [PATCH] Debug pipeline --- .gitea/workflows/build.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 9f6b8a2..10c0b34 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -65,7 +65,7 @@ jobs: run: | apt-get update -qq && apt-get install -y -qq skopeo - - name: Build and push image + - name: Push with skopeo debug env: REG_USER: ${{ secrets.REGISTRY_USERNAME }} REG_PASS: ${{ secrets.REGISTRY_PASSWORD }} @@ -76,21 +76,14 @@ jobs: docker build --pull -t "${REGISTRY}/${IMAGE}:${VERSION}" . docker save "${REGISTRY}/${IMAGE}:${VERSION}" -o /tmp/image.tar - # Write auth file using printf (no shell interpretation of password content) AUTH=$(printf '%s:%s' "$REG_USER" "$REG_PASS" | base64 -w0) mkdir -p /tmp/auth printf '{"auths":{"%s":{"auth":"%s"}}}\n' "$REGISTRY" "$AUTH" > /tmp/auth/auth.json - # Sanity check the file is readable and matches expected - cat /tmp/auth/auth.json - - skopeo copy --authfile /tmp/auth/auth.json \ + # --debug prints HTTP request/response details + skopeo --debug copy --authfile /tmp/auth/auth.json \ "docker-archive:/tmp/image.tar" \ - "docker://${REGISTRY}/${IMAGE}:${VERSION}" - - skopeo copy --authfile /tmp/auth/auth.json \ - "docker://${REGISTRY}/${IMAGE}:${VERSION}" \ - "docker://${REGISTRY}/${IMAGE}:latest" + "docker://${REGISTRY}/${IMAGE}:${VERSION}" 2>&1 | tail -100 - name: Tag git commit with version env: