add tag only

This commit is contained in:
Adrien Beaudouin 2024-08-14 17:37:55 +02:00
parent c989e9942a
commit 1cecdfb69f
2 changed files with 4 additions and 9 deletions

View File

@ -12,16 +12,10 @@ jobs:
runs-on: ubuntu-latest
if: ${{ startsWith(gitea.ref, 'refs/tags/v') }}
steps:
- uses: actions/checkout@v4
- uses: docker/metadata-action@v5
id: meta
# - uses: actions/checkout@v4
- uses: https://gitea.okami101.io/okami101/actions/docker@main
with:
images: ${{ vars.CONTAINER_REGISTRY }}/${{ gitea.repository }}
- uses: docker/login-action@v3
with:
registry: ${{ vars.CONTAINER_REGISTRY }}
username: ${{ vars.CONTAINER_REGISTRY_USERNAME }}
password: ${{ secrets.password }}
password: ${{ secrets.CONTAINER_REGISTRY_PASSWORD }}
- name: Push tags
shell: bash
env:

View File

@ -25,6 +25,7 @@ runs:
username: ${{ inputs.username }}
password: ${{ inputs.password }}
- uses: docker/build-push-action@v6
if: ${{ !startsWith(gitea.ref, 'refs/tags/v') }}
with:
context: .
push: true