add tag only

This commit is contained in:
Adrien Beaudouin 2024-08-14 16:39:47 +02:00
parent ddaa8ea688
commit 0eae82c292

View File

@ -34,5 +34,8 @@ runs:
- name: Push tags - name: Push tags
shell: bash shell: bash
if: ${{ startsWith(gitea.ref, 'refs/tags/v') }} if: ${{ startsWith(gitea.ref, 'refs/tags/v') }}
env:
DOCKER_IMAGE: ${{ inputs.registry }}/${{ gitea.repository }}
run: | run: |
docker push ${{ inputs.registry }}/${{ gitea.repository }}:latest docker tag $DOCKER_IMAGE:main $DOCKER_IMAGE:latest
docker push $DOCKER_IMAGE:latest