-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust PR workflow to the new test strategy (#1294)
* Adjust PR workflow to the new test strategy * Improvements * Add build job for the image that allows to push to external img registry * Rename workflow
- Loading branch information
1 parent
7046278
commit d55a1ec
Showing
4 changed files
with
41 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: PR Build and Push Manager Image | ||
|
||
on: | ||
pull_request_target: | ||
types: [ synchronize, opened, reopened, ready_for_review ] | ||
paths-ignore: | ||
- "docs/**" | ||
- "**/*.md" | ||
- "tests/performance/**" | ||
- "OWNERS" | ||
- "CODEOWNERS" | ||
- ".github/**" #Ignoring since build job isn't triggered on the workflow directory changes | ||
- "external-images.yaml" | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
build-image: | ||
name: Build and push manager image | ||
environment: ${{ github.event.pull_request.author_association != 'COLLABORATOR' && github.event.pull_request.author_association != 'OWNER' && 'restricted' || 'internal' }} | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.pull_request.draft == false }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 0 | ||
- uses: ./.github/actions/build-manager-image | ||
with: | ||
operator-image-name: "europe-central2-docker.pkg.dev/sap-se-cx-kyma-goat/istio/istio-manager:PR-${{github.event.number}}" | ||
push-image: 'true' | ||
push-sa-key: ${{ secrets.GCP_SA_KEY }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters