diff --git a/.github/workflows/build_docker_images.yml b/.github/workflows/build_docker_images.yml index 62ffa26..ba8d1fc 100644 --- a/.github/workflows/build_docker_images.yml +++ b/.github/workflows/build_docker_images.yml @@ -49,14 +49,14 @@ jobs: uses: docker/setup-buildx-action@v2 - name: Login to DockerHub - # if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Login to GHCR - # if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' uses: docker/login-action@v2 with: registry: ghcr.io @@ -68,10 +68,9 @@ jobs: with: context: . platforms: linux/amd64, linux/arm64, linux/arm/v7 - # push: ${{ github.event_name != 'pull_request' }} + push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} cache-from: type=registry,ref=ghcr.io/dmunozv04/isponsorblocktv:buildcache # Only cache if it's not a pull request - # cache-to: ${{ github.event_name != 'pull_request' && 'type=registry,ref=ghcr.io/dmunozv04/isponsorblocktv:buildcache,mode=max' || '' }} - cache-to: type=registry,ref=ghcr.io/dmunozv04/isponsorblocktv:buildcache,mode=max \ No newline at end of file + cache-to: ${{ github.event_name != 'pull_request' && 'type=registry,ref=ghcr.io/dmunozv04/isponsorblocktv:buildcache,mode=max' || '' }}