diff --git a/.gitea/workflows/dl.yml b/.gitea/workflows/dl.yml index de2eb1a..b6f05b7 100644 --- a/.gitea/workflows/dl.yml +++ b/.gitea/workflows/dl.yml @@ -25,13 +25,13 @@ jobs: id: meta with: images: xefir/dl - flavor: latest=true + flavor: latest=${{ gitea.ref == 'refs/heads/master' }} - uses: https://github.com/docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - uses: https://github.com/docker/build-push-action@v4 with: - push: true + push: ${{ gitea.ref == 'refs/heads/master' || startsWith(gitea.ref, 'refs/tags') }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}