diff --git a/.github/workflows/container.yaml b/.github/workflows/container.yaml index dab701411..4a7bd26b0 100644 --- a/.github/workflows/container.yaml +++ b/.github/workflows/container.yaml @@ -53,7 +53,6 @@ jobs: with: context: . containerfiles: ./Containerfile - image: my-new-image platforms: linux/amd64,linux/arm64 labels: ${{ steps.metadata.outputs.labels }} tags: ${{ steps.metadata.outputs.tags }} @@ -61,6 +60,7 @@ jobs: - name: Push to GitHub Container Registry uses: redhat-actions/push-to-registry@v2 + if: "github.event_name != 'pull_request'" with: image: ${{ steps.build.outputs.image }} tags: ${{ steps.build.outputs.tags }}