diff --git a/.gitea/workflows/pynyaata.yml b/.gitea/workflows/pynyaata.yml index 47fea1d..063a86f 100644 --- a/.gitea/workflows/pynyaata.yml +++ b/.gitea/workflows/pynyaata.yml @@ -23,14 +23,14 @@ jobs: id: meta with: images: xefir/pynyaata - flavor: latest=${{ github.ref == 'refs/heads/master' }} + 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: ${{ github.ref == 'refs/heads/master' }} + push: ${{ gitea.ref == 'refs/heads/master' || startsWith(gitea.ref, 'refs/tags') }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} @@ -38,7 +38,7 @@ jobs: runs-on: ubuntu-latest container: python needs: [lint] - if: ${{ github.ref == 'refs/heads/master' }} + if: ${{ gitea.ref == 'refs/heads/master' || startsWith(gitea.ref, 'refs/tags') }} steps: - run: apt-get update - run: apt-get install -y git nodejs