-
Notifications
You must be signed in to change notification settings - Fork 14
63 lines (53 loc) · 1.86 KB
/
dependencies.yml
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
name: github-docker
# this workflow only triggers when manually started
on: workflow_dispatch
permissions:
contents: read
packages: write
jobs:
build-dependencies:
if: (github.repository == 'dealii/docker-files')
name: dependencies - ${{ matrix.system.ubuntu_version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
system:
- ubuntu_version: "focal"
dealii_version: 9.4.0-1ubuntu2~bpo20.04.1~ppa1
tag: focal-v9.5.1
- ubuntu_version: "jammy"
dealii_version: 9.4.0-1ubuntu2~bpo22.04.1~ppa1
tag: jammy-v9.5.1
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image of dependencies ${{ matrix.system.ubuntu_version }}
uses: docker/build-push-action@v5
with:
context: ./dependencies/
cache-from: type=registry,ref=dealii/dependencies:${{ matrix.system.ubuntu_version }}
cache-to: type=inline
build-args: |
IMG=${{ matrix.system.ubuntu_version }}
VERSION=${{ matrix.system.dealii_version}}
platforms: linux/arm64,linux/amd64
push: true
tags: |
ghcr.io/${{ github.repository }}:${{ matrix.system.tag }}
dealii/dependencies:${{ matrix.tag }}