Update .gitea/workflows/build-and-push.yaml
Some checks failed
Build and Push Container Image / build-and-push (push) Failing after 6s

This commit is contained in:
2026-04-27 11:58:46 +00:00
parent 90d93a32f0
commit 2b7861c1cf

View File

@@ -45,6 +45,7 @@ jobs:
- name: Push image - name: Push image
run: | run: |
IMAGE="${INTERNAL_REGISTRY}/${{ gitea.repository }}:${{ steps.meta.outputs.tag }}" REGISTRY_HOST=$(echo "${{ gitea.server_url }}" | sed 's|https\?://||')
crane auth login "${INTERNAL_REGISTRY}" -u "${{ gitea.actor }}" -p "${{ secrets.REGISTRY_TOKEN }}" --insecure IMAGE="${REGISTRY_HOST}/${{ gitea.repository }}:${{ steps.meta.outputs.tag }}"
crane push image.tar "${IMAGE}" --insecure crane auth login "${REGISTRY_HOST}" -u "${{ gitea.actor }}" -p "${{ secrets.REGISTRY_TOKEN }}"
crane push image.tar "${IMAGE}"