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

View File

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