From 96a60f3ed9ddc01a77f0e5e4cb2430fb00118f69 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Mon, 14 Apr 2025 13:20:24 +0200 Subject: [PATCH] Actualiser .gitea/workflows/build-push.yaml --- .gitea/workflows/build-push.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build-push.yaml b/.gitea/workflows/build-push.yaml index 50be302..b824fd5 100644 --- a/.gitea/workflows/build-push.yaml +++ b/.gitea/workflows/build-push.yaml @@ -58,9 +58,6 @@ jobs: run: | echo "IMAGE_TAGS=${{ env.IMAGE_TAGS }} pmo-${{ env.SOFTVERSION }}" >> $GITEA_ENV - - name: Podman login - uses: https://gargoton.petite-maison-orange.fr/pmo-actions/podman-login@main - - name: Build and tag image uses: https://gargoton.petite-maison-orange.fr/pmo-actions/build-image@main with: @@ -95,11 +92,11 @@ jobs: check_message: 'Docker image for $(cat ${{ env.RELEASE_FILE }}) built and tagged' - name: Push image to registry - run: | - tags=(${{ env.IMAGE_TAGS }}) - for tag in "${tags[@]}" ; do - podman push ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}:$tag - done + uses: https://gargoton.petite-maison-orange.fr/pmo-actions/push-image@main + with: + registry_login: true + image_name: '${{ env.IMAGE_NAME }}' + image_tags: '${{ env.IMAGE_TAGS }}' - name: Push image failed if: failure()