-
-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Only start a single container job
This introduces the main.yml workflow which is triggered on push and pull requests which then calls out to the workflows we actually want to run. The first one is container.yml which is a dependency of both build-and-test.yml and pages.yml which run in parallel. This means that we only have to check the registry once for the image and if we have to build it, we also do it once only.
- Loading branch information
Showing
5 changed files
with
56 additions
and
32 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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
name: Create build container | ||
|
||
env: | ||
IMAGE_TAG: 20241008-1 | ||
|
||
|
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,30 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build-container: | ||
name: Container | ||
uses: ./.github/workflows/container.yml | ||
permissions: | ||
packages: write | ||
|
||
build-and-test: | ||
name: Build and Test | ||
uses: ./.github/workflows/build-and-test.yml | ||
needs: build-container | ||
with: | ||
image: ${{ needs.build-container.outputs.image }} | ||
image_options: ${{ needs.build-container.outputs.image_options }} | ||
|
||
pages: | ||
name: Documentation & Website | ||
uses: ./.github/workflows/pages.yml | ||
needs: build-container | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
with: | ||
image: ${{ needs.build-container.outputs.image }} | ||
image_options: ${{ needs.build-container.outputs.image_options }} |
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