fix: 👷 use default branch for building image
All checks were successful
divent / lint (push) Successful in 1m24s
divent / docker (push) Successful in 1m12s
divent / pypi (push) Has been skipped

This commit is contained in:
Michel Roux 2024-05-20 17:48:28 +02:00
parent b0f10a7933
commit 7893499305

View File

@ -37,7 +37,7 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v5 - uses: docker/build-push-action@v5
with: with:
push: ${{ gitea.ref_name == 'master' || gitea.ref_type == 'tag' }} push: ${{ gitea.ref_name == gitea.event.repository.default_branch || gitea.ref_type == 'tag' }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}