-
Notifications
You must be signed in to change notification settings - Fork 256
55 lines (45 loc) · 1.34 KB
/
docker-petsc.yml
File metadata and controls
55 lines (45 loc) · 1.34 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
name: Publish devito-petsc docker image
permissions:
contents: read
on:
push:
branches:
- petsc
# will be dropped after merge into petsc branch
- petscsection
jobs:
build-and-push:
name: Build and push devito-petsc image
runs-on: ubuntu-latest
env:
# Use buildkit
DOCKER_BUILDKIT: "1"
PETSC_REPO: https://gitlab.com/ZoeLeibowitz/petsc.git
PETSC_BRANCH: zoe/feature-da-section-sf
steps:
- name: Checkout devito
uses: actions/checkout@v5
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build & push petsc image
uses: docker/build-push-action@v6
with:
context: .
file: docker/Dockerfile.petsc
push: true
platforms: linux/amd64
tags: |
devitocodes/devito-petsc:latest
build-args: |
base=devitocodes/devito:gcc-dev-amd64
PETSC_REPO=${{ env.PETSC_REPO }}
PETSC_BRANCH=${{ env.PETSC_BRANCH }}
- name: Remove dangling layers
run: docker system prune -f