Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: switch main build jobs #1290

Merged
merged 1 commit into from
Sep 10, 2024
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
44 changes: 18 additions & 26 deletions .github/workflows/main-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

name: Main Integration

permissions:
id-token: write # This is required for requesting the JWT token
contents: read # This is required for actions/checkout

on:
push:
paths-ignore:
Expand All @@ -17,33 +21,21 @@ on:
- cron: '0 5 * * *' # Run every day at 05:00 AM

jobs:
wait-for-image-build:
name: Wait for image build
runs-on: ubuntu-latest
outputs:
sha: ${{ steps.get-sha.outputs.sha }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/wait-for-job-succeed-or-fail
if: ${{ github.event_name != 'schedule' }}
with:
job-name: 'post-api-gateway-manager-build'
github-auth-token: ${{ secrets.GITHUB_TOKEN }}
commit-ref: ${{ github.sha }}
- id: get-sha
run: |
if [ "${{ github.event_name }}" != "schedule" ]; then
echo "sha=${{ github.sha }}" >> $GITHUB_OUTPUT
else
echo "sha=$(./scripts/get_latest_build_sha.sh)" >> $GITHUB_OUTPUT
fi
build:
name: build api-gateway image
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: api-gateway
dockerfile: Dockerfile
context: .
build-args: |
VERSION=${{ github.sha }}
tags: "${{ github.sha }}"

integration-tests:
name: Integration tests
runs-on: ubuntu-latest
needs: [wait-for-image-build]
needs: [build]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -58,7 +50,7 @@ jobs:
upgrade-tests:
name: Upgrade tests
runs-on: ubuntu-latest
needs: [wait-for-image-build]
needs: [build]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -74,7 +66,7 @@ jobs:
custom-domain-integration-gcp:
name: Custom domain integration GCP
runs-on: ubuntu-latest
needs: [wait-for-image-build]
needs: [build]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -93,7 +85,7 @@ jobs:
custom-domain-integration-aws:
name: Custom domain integration AWS
runs-on: ubuntu-latest
needs: [wait-for-image-build]
needs: [build]
steps:
- uses: actions/checkout@v4
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/verify-commit-pins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ jobs:
actions/checkout
actions/setup-go
actions/upload-artifact
kyma-project/test-infra