Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:

jobs:
docker-build-push:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
Comment thread
mclasmeier marked this conversation as resolved.
name: Build and Push Multi-arch Image
runs-on: ubuntu-latest
permissions:
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
fi

create-gke-cluster:
if: github.event.pull_request.head.repo.full_name == github.repository
uses: ./.github/workflows/create-dev-cluster.yml
with:
cluster-name: infra-roxie-pr-${{ github.event.pull_request.number }}-gke
Expand All @@ -38,7 +39,7 @@ jobs:

create-openshift-cluster:
needs: check-olm-label
if: needs.check-olm-label.outputs.has-label == 'true'
if: needs.check-olm-label.outputs.has-label == 'true' && github.event.pull_request.head.repo.full_name == github.repository
uses: ./.github/workflows/create-dev-cluster.yml
with:
cluster-name: infra-roxie-pr-${{ github.event.pull_request.number }}-openshift
Expand All @@ -47,13 +48,15 @@ jobs:
secrets: inherit

build-roxie-image:
if: github.event.pull_request.head.repo.full_name == github.repository
uses: ./.github/workflows/build-roxie-image.yml
permissions:
contents: read
packages: write
secrets: inherit

e2e-tests:
if: github.event.pull_request.head.repo.full_name == github.repository
needs: [ create-gke-cluster, build-roxie-image ]
uses: ./.github/workflows/e2e-tests.yml
with:
Expand All @@ -62,6 +65,7 @@ jobs:
secrets: inherit

e2e-tests-openshift:
if: github.event.pull_request.head.repo.full_name == github.repository
needs: [ create-openshift-cluster, build-roxie-image ]
uses: ./.github/workflows/e2e-tests.yml
with:
Expand All @@ -72,15 +76,15 @@ jobs:
secrets: inherit

delete-gke-cluster:
if: ${{ always() && needs.create-gke-cluster.result == 'success' }}
if: ${{ always() && needs.create-gke-cluster.result == 'success' && github.event.pull_request.head.repo.full_name == github.repository }}
needs: [ create-gke-cluster, e2e-tests ]
uses: ./.github/workflows/delete-dev-cluster.yml
with:
cluster-name: ${{ needs.create-gke-cluster.outputs.cluster-name }}
secrets: inherit

delete-openshift-cluster:
if: ${{ always() && needs.create-openshift-cluster.result == 'success' }}
if: ${{ always() && needs.create-openshift-cluster.result == 'success' && github.event.pull_request.head.repo.full_name == github.repository }}
needs: [ create-openshift-cluster, e2e-tests-openshift ]
uses: ./.github/workflows/delete-dev-cluster.yml
with:
Expand Down
Loading