From 59b6728ce8ae8b425fdeb7afeddf2138e649bd40 Mon Sep 17 00:00:00 2001 From: Le Serjant Date: Mon, 16 Mar 2026 11:33:37 +0000 Subject: [PATCH] Add debug output to identify which buildah command hangs Remove unnecessary registries.conf write (host already has it). Add set -ex and echo markers between commands to pinpoint the hang. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/deploy.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 931b33b..2160cb9 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -21,15 +21,20 @@ jobs: - name: Build and push container image run: | - mkdir -p /etc/containers - printf '[[registry]]\nlocation = "git.kimchi"\ninsecure = true\n' > /etc/containers/registries.conf + set -ex IMAGE_TAG="${{ env.IMAGE }}:sha-${GITHUB_SHA::8}" IMAGE_LATEST="${{ env.IMAGE }}:latest" buildah bud --tls-verify=false -f Containerfile -t "$IMAGE_TAG" -t "$IMAGE_LATEST" . + + echo "=== buildah login ===" buildah login --tls-verify=false "${{ env.REGISTRY }}" -u "${{ secrets.REGISTRY_USER }}" -p "${{ secrets.REGISTRY_PASSWORD }}" + + echo "=== buildah push tag ===" buildah push --tls-verify=false "$IMAGE_TAG" + + echo "=== buildah push latest ===" buildah push --tls-verify=false "$IMAGE_LATEST" echo "IMAGE_TAG=$IMAGE_TAG" >> "$GITHUB_ENV"