From d62746e9f2e790a6786a7046aa659df7dc8d3d97 Mon Sep 17 00:00:00 2001 From: Adrien Beaudouin Date: Wed, 14 Aug 2024 16:11:52 +0200 Subject: [PATCH] up --- docker/action.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker/action.yaml b/docker/action.yaml index 6c5f9cd..b25d622 100644 --- a/docker/action.yaml +++ b/docker/action.yaml @@ -25,8 +25,16 @@ runs: username: ${{ inputs.username }} password: ${{ inputs.password }} - uses: docker/build-push-action@v6 + if: ${{ !startsWith(github.ref, 'refs/tags/v') }} with: context: . push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + - name: Push tags + shell: bash + if: ${{ startsWith(github.ref, 'refs/tags/v') }} + run: | + for tag in ${{ steps.meta.outputs.tags }}; do + docker push ${{ inputs.registry }}/${{ gitea.repository }}:$tag + done