diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4671129a7..3bbe8df91 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,7 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USER }} password: ${{ secrets.DOCKERHUB_TOKEN }} - if: ${{ secrets.DOCKERHUB_TOKEN && !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }} + if: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }} - name: Login to Github Packages uses: docker/login-action@v3 @@ -52,7 +52,7 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.DOCKER_TOKEN }} - if: ${{ secrets.DOCKER_TOKEN && !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }} + if: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }} - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -85,5 +85,5 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha - push: ${{ (secrets.DOCKERHUB_TOKEN || secrets.DOCKER_TOKEN) && !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }} + push: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }} cache-to: type=gha,mode=max