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}