Release API Gateway 2.4.0 #35
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 workflow is responsible for all kinds of integration tests run on pull request. | |
# Those tests depend on a container image so in the first job we wait for the image build to succeed. | |
name: PR Integration Release | |
on: | |
# pull_request_target runs workflows from the base of PR | |
# It allows the workflow to get the repository secrets | |
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 | |
branches: | |
- 'release-**' | |
jobs: | |
wait-for-image-build: | |
environment: ${{ github.event.pull_request.author_association != 'COLLABORATOR' && github.event.pull_request.author_association != 'OWNER' && 'restricted' || 'internal' }} | |
name: Wait for image build | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.draft == false | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ./.github/actions/wait-for-job-succeed-or-fail | |
with: | |
job-name: 'pull-api-gateway-manager-build' | |
github-auth-token: ${{ secrets.GITHUB_TOKEN }} | |
integration-tests: | |
name: Integration tests | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.draft == false | |
needs: [wait-for-image-build] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- uses: ./.github/actions/integration-tests | |
with: | |
client_id: ${{ secrets.CLIENT_ID }} | |
client_secret: ${{ secrets.CLIENT_SECRET }} | |
oidc_well_known_url: "${{ secrets.OIDC_ISSUER_URL }}/.well-known/openid-configuration" | |
manager_image: "europe-docker.pkg.dev/kyma-project/dev/api-gateway-manager:PR-${{github.event.number}}" | |
k8s-compatibility-check: | |
name: Kubernetes version compatibility test | |
runs-on: ubuntu-latest | |
if: github.event.pull_request.draft == false | |
needs: [ wait-for-image-build ] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- uses: ./.github/actions/k8s-compatibility-test | |
with: | |
client_id: ${{ secrets.CLIENT_ID }} | |
client_secret: ${{ secrets.CLIENT_SECRET }} | |
oidc_well_known_url: "${{ secrets.OIDC_ISSUER_URL }}/.well-known/openid-configuration" | |
manager_image: "europe-docker.pkg.dev/kyma-project/dev/api-gateway-manager:PR-${{github.event.number}}" | |
upgrade-tests: | |
name: Upgrade tests | |
runs-on: ubuntu-latest | |
needs: [wait-for-image-build] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- uses: ./.github/actions/upgrade-test | |
with: | |
test_upgrade_img: "europe-docker.pkg.dev/kyma-project/dev/api-gateway-manager:PR-${{github.event.number}}" | |
client_id: ${{ secrets.CLIENT_ID }} | |
client_secret: ${{ secrets.CLIENT_SECRET }} | |
oidc_well_known_url: "${{ secrets.OIDC_ISSUER_URL }}/.well-known/openid-configuration" | |
target_branch: ${{ github.base_ref }} | |
custom-domain-gcp: | |
name: Custom domain GCP | |
runs-on: ubuntu-latest | |
needs: [wait-for-image-build] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- uses: ./.github/actions/integration-test-gardener | |
with: | |
manager_image: "europe-docker.pkg.dev/kyma-project/dev/api-gateway-manager:PR-${{github.event.number}}" | |
gardener_secret: ${{ secrets.GARDENER_TOKEN }} | |
script: ./tests/integration/scripts/custom-domain-gardener-gcp-gh.sh | |
client_id: ${{ secrets.CLIENT_ID }} | |
client_secret: ${{ secrets.CLIENT_SECRET }} | |
oidc_well_known_url: "${{ secrets.OIDC_ISSUER_URL }}/.well-known/openid-configuration" | |
dns_secret_json: ${{ secrets.DNS_SECRET_JSON }} | |
custom-domain-aws: | |
name: Custom domain AWS | |
runs-on: ubuntu-latest | |
needs: [wait-for-image-build] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 0 | |
- uses: ./.github/actions/integration-test-gardener | |
with: | |
manager_image: "europe-docker.pkg.dev/kyma-project/dev/api-gateway-manager:PR-${{github.event.number}}" | |
gardener_secret: ${{ secrets.GARDENER_TOKEN }} | |
script: ./tests/integration/scripts/custom-domain-gardener-aws-gh.sh | |
client_id: ${{ secrets.CLIENT_ID }} | |
client_secret: ${{ secrets.CLIENT_SECRET }} | |
oidc_well_known_url: "${{ secrets.OIDC_ISSUER_URL }}/.well-known/openid-configuration" | |
dns_secret_json: ${{ secrets.DNS_SECRET_JSON }} |