From 2dfd4d3d761a71ccffb692bf390ccc5bde51134f Mon Sep 17 00:00:00 2001 From: Mayne0213 Date: Sat, 10 Jan 2026 22:58:05 +0900 Subject: [PATCH] FIX(ci): add error handling and debug logging - Add -e flag to exit on error - Add -x flag to trace commands - Add ls command to verify image.tar exists --- .gitea/workflows/build-push.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-push.yaml b/.gitea/workflows/build-push.yaml index 7bdbd8e..af04bbf 100644 --- a/.gitea/workflows/build-push.yaml +++ b/.gitea/workflows/build-push.yaml @@ -44,10 +44,11 @@ jobs: containers: - name: crane image: gcr.io/go-containerregistry/crane:debug - command: ["/busybox/sh", "-c"] + command: ["/busybox/sh", "-exc"] args: - | echo "Pushing image to ${REGISTRY}/${IMAGE_NAME}..." + ls -la /workspace/ crane auth login ${REGISTRY} -u \$(cat /secrets/username) -p \$(cat /secrets/password) crane push /workspace/image.tar ${REGISTRY}/${IMAGE_NAME}:latest crane push /workspace/image.tar ${REGISTRY}/${IMAGE_NAME}:${GITHUB_SHA}