Update .gitea/workflows/build-and-push.yaml
Some checks failed
Build and Push Container Image / build-and-push (push) Failing after 6s
Some checks failed
Build and Push Container Image / build-and-push (push) Failing after 6s
This commit is contained in:
@@ -45,6 +45,7 @@ jobs:
|
||||
|
||||
- name: Push image
|
||||
run: |
|
||||
IMAGE="${INTERNAL_REGISTRY}/${{ gitea.repository }}:${{ steps.meta.outputs.tag }}"
|
||||
crane auth login "${INTERNAL_REGISTRY}" -u "${{ gitea.actor }}" -p "${{ secrets.REGISTRY_TOKEN }}" --insecure
|
||||
crane push image.tar "${IMAGE}" --insecure
|
||||
REGISTRY_HOST=$(echo "${{ gitea.server_url }}" | sed 's|https\?://||')
|
||||
IMAGE="${REGISTRY_HOST}/${{ gitea.repository }}:${{ steps.meta.outputs.tag }}"
|
||||
crane auth login "${REGISTRY_HOST}" -u "${{ gitea.actor }}" -p "${{ secrets.REGISTRY_TOKEN }}"
|
||||
crane push image.tar "${IMAGE}"
|
||||
|
||||
Reference in New Issue
Block a user