-
Notifications
You must be signed in to change notification settings - Fork 1
Add Docker build workflow on release
#170
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
7a89444
Add Docker build workflow on release
joewallwork 29f11c8
Checkout Dockerfile from right firedrake branch
stephankramer 82f4719
Accidentally removed line
stephankramer f1dfb2e
head_ref not head
stephankramer 86e1611
Single dollar!
stephankramer cfe4c02
Allow longer artifact names.
stephankramer a9b6d6d
Provide and use branch arg for firedrake-parmmg
joewallwork d0907b2
Use release tag rather than separate Docker image
joewallwork a1ba318
Update use of tags in test suite
joewallwork 73bcd39
Introduce firedrake-branch argument
joewallwork 492a732
DO NOT MERGE - temporary dockerfile-branch change for testing
joewallwork 32a9585
Fix Zizmor ignores
joewallwork 6e61f37
Remove outdated comment
joewallwork 4071848
Use default dockerfile-branch for firedrake-parmmg
joewallwork 90b37b4
Update Zizmor ignores again
joewallwork File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,62 @@ | ||
| name: Build Firedrake Docker container with (Par)Mmg (release) | ||
|
|
||
| on: | ||
| # Check that Docker build succeeds when these files get changed in an open PR | ||
| pull_request: | ||
| paths: | ||
| - '.github/workflows/reusable_docker_build.yml' | ||
| - '.github/workflows/docker_firedrake-parmmg_release.yml' | ||
| - 'docker/Dockerfile.firedrake-parmmg' | ||
| - 'docker/Dockerfile.firedrake-um2n' | ||
|
|
||
| # Build and push the Docker container when these files get changed on the main branch | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - '.github/workflows/reusable_docker_build.yml' | ||
| - '.github/workflows/docker_firedrake-parmmg_release.yml' | ||
| - 'docker/Dockerfile.firedrake-parmmg' | ||
| - 'docker/Dockerfile.firedrake-um2n' | ||
|
|
||
| # Run test suite at 1AM on the first of the month | ||
| schedule: | ||
| - cron: '0 1 1 * *' | ||
|
|
||
| # Manually trigger the workflow | ||
| workflow_dispatch: | ||
|
|
||
| permissions: {} | ||
|
|
||
| # Stop the workflow if a new run is requested | ||
| concurrency: | ||
| group: $${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| docker_base: | ||
| permissions: | ||
| packages: write | ||
| uses: ./.github/workflows/reusable_docker_build.yml | ||
| with: | ||
| # use Dockerfile.vanilla from Firedrake to build firedrake-parmmg-base image | ||
| # which contains a build of PETSc+Firedrake with (Par)Mmg libraries included | ||
| dockerfile-repo: 'firedrakeproject/firedrake' | ||
| dockerfile-path: 'docker/Dockerfile.vanilla' | ||
| dockerfile-branch: 'release' | ||
| firedrake-branch: 'release' | ||
| docker-image-tag: 'ghcr.io/mesh-adaptation/firedrake-parmmg-base:release' | ||
| save-docker-image-artifact: 'firedrake-parmmg-base-release' | ||
|
|
||
| docker_parmmg: | ||
| permissions: | ||
| packages: write | ||
| uses: ./.github/workflows/reusable_docker_build.yml | ||
| needs: docker_base | ||
| with: | ||
| # starting from firedrake-parmmg-base, build firedrake-parmmg image | ||
| # which includes Animate, Movement, Goalie, and Thetis packages | ||
| dockerfile-path: 'docker/Dockerfile.firedrake-parmmg' | ||
| firedrake-branch: 'release' | ||
| docker-image-tag: 'ghcr.io/mesh-adaptation/firedrake-parmmg:release' | ||
| load-docker-image-artifact: 'firedrake-parmmg-base-release' |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.