From 89c5449ddd492fb65856e6a1ec4edbd3c1e5a2ba Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Tue, 7 Nov 2023 15:24:36 -0500 Subject: [PATCH] re-enable owner check --- .github/workflows/push-ci.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/push-ci.yaml b/.github/workflows/push-ci.yaml index e8f13e507..edc4bcf49 100644 --- a/.github/workflows/push-ci.yaml +++ b/.github/workflows/push-ci.yaml @@ -52,7 +52,7 @@ jobs: permissions: packages: write contents: read - # if: ${{ github.repository_owner == 'cryostatio' }} + if: ${{ github.repository_owner == 'cryostatio' }} steps: - uses: actions/checkout@v3 with: @@ -111,8 +111,7 @@ jobs: podman rmi ${{ env.CI_IMG }}:latest ${{ env.CI_IMG }}:dev ${{ env.CI_IMG }}:${{ env.IMAGE_VERSION }} continue-on-error: true - name: Build container images and manifest - # if: ${{ github.event_name == 'push' && github.repository_owner == 'cryostatio' }} - if: ${{ matrix.java == '17' }} + if: ${{ matrix.java == '17' }} && ${{ github.event_name == 'push' && github.repository_owner == 'cryostatio' }} id: buildah-build uses: redhat-actions/buildah-build@v2 with: @@ -131,9 +130,7 @@ jobs: registry: ${{ env.CI_REGISTRY }} username: ${{ env.CI_USER }} password: ${{ secrets.REGISTRY_PASSWORD }} - if: ${{ matrix.java == '17' }} - # if: ${{ github.event_name == 'push' && github.repository_owner == 'cryostatio' }} + if: ${{ matrix.java == '17' }} && ${{ github.event_name == 'push' && github.repository_owner == 'cryostatio' }} - name: Print image URL run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" - if: ${{ matrix.java == '17' }} - # if: ${{ github.event_name == 'push' && github.repository_owner == 'cryostatio' }} + if: ${{ matrix.java == '17' }} && ${{ github.event_name == 'push' && github.repository_owner == 'cryostatio' }}