-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker_firedrake-parmmg_main.yml
More file actions
75 lines (66 loc) · 2.59 KB
/
docker_firedrake-parmmg_main.yml
File metadata and controls
75 lines (66 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Build Firedrake Docker container with (Par)Mmg (main)
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_main.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_main.yml'
- 'docker/Dockerfile.firedrake-parmmg'
- 'docker/Dockerfile.firedrake-um2n'
# Build and push the Docker containers every Saturday at 12AM
schedule:
- cron: '0 0 * * 6'
# 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: 'main'
firedrake-branch: 'main'
docker-image-tag: 'ghcr.io/mesh-adaptation/firedrake-parmmg-base:latest'
save-docker-image-artifact: 'firedrake-parmmg-base'
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: 'main'
docker-image-tag: 'ghcr.io/mesh-adaptation/firedrake-parmmg:latest'
load-docker-image-artifact: 'firedrake-parmmg-base'
save-docker-image-artifact: 'firedrake-parmmg'
docker_um2n:
permissions:
packages: write
uses: ./.github/workflows/reusable_docker_build.yml
needs: docker_parmmg
with:
# starting from firedrake-parmmg build firedrake-um2n image
# which adds UM2N and it dependencies including PyTorch(CPU)
dockerfile-path: 'docker/Dockerfile.firedrake-um2n'
docker-image-tag: 'ghcr.io/mesh-adaptation/firedrake-um2n:latest'
load-docker-image-artifact: 'firedrake-parmmg'