diff --git a/.github/workflows/tag-docker_test_build_push.yaml b/.github/workflows/tag-docker_test_build_push.yaml index 9dd352a..81dc671 100644 --- a/.github/workflows/tag-docker_test_build_push.yaml +++ b/.github/workflows/tag-docker_test_build_push.yaml @@ -15,7 +15,6 @@ on: jobs: Docker: - if: github.event_name != 'pull_request' name: Build and Push Docker Images runs-on: ubuntu-latest outputs: @@ -65,12 +64,14 @@ jobs: uses: docker/setup-qemu-action@v2 - name: Login to Docker Hub Container Registry + if: ${{ github.event_name != 'pull_request' }} uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_ROBOT_TOKEN }} - name: Login to GHCR.io Container Registry + if: ${{ github.event_name != 'pull_request' }} uses: docker/login-action@v2 with: registry: ghcr.io @@ -78,6 +79,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Login to Quay.io Container Registry + if: ${{ github.event_name != 'pull_request' }} uses: docker/login-action@v2 with: registry: quay.io @@ -118,10 +120,9 @@ jobs: id: build-all with: context: . - push: true + push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} - labels: | - ${{ steps.meta.outputs.labels }} + labels: ${{ steps.meta.outputs.labels }} cache-from: | type=gha type=registry,ref=quay.io/k8start/http-headers