This commit is contained in:
Adrien Beaudouin 2024-08-14 16:11:52 +02:00
parent 623cffd9ff
commit d62746e9f2

View File

@ -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