diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cdd5bc5a..81958aa6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -100,7 +100,6 @@ jobs: docker: name: Docker push runs-on: ubuntu-latest - if: github.event_name == 'push' needs: - gcc - tarball @@ -127,13 +126,14 @@ jobs: - run: echo "${GITHUB_REF#refs/heads/}-${{steps.tagger.outputs.describe}}" > .nightly - run: cat .nightly - uses: docker/login-action@v1 + if: ${{ github.repository == 'znc/znc' && github.event_name == 'push' }} with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - uses: docker/build-push-action@v2 with: context: . - push: true + push: ${{ github.repository == 'znc/znc' && github.event_name == 'push' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: |