-
Notifications
You must be signed in to change notification settings - Fork 2
80 lines (76 loc) · 1.99 KB
/
ghci.yaml
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
76
77
78
79
80
name: ghci
on:
pull_request:
branches: [ main ]
paths:
- 'ghci/**'
- '.github/workflows/ghci.yaml'
push:
branches: [ main ]
paths:
- 'ghci/**'
- '.github/workflows/ghci.yaml'
tags:
- 'ghci-*'
env:
GCC_VERSION: "11.4.0"
MPICH_VERSION: "3.4.3"
SZIP_VERSION: "2.1.1"
HDF5_VERSION: "1.12.3"
NETCDFC_VERSION: "4.9.2"
NETCDFCXX_VERSION: "4.2"
NETCDFFORTRAN_VERSION: "4.6.1"
PNETCDF_VERSION: "1.12.1"
jobs:
ocis:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
show-progress: false
persist-credentials: false
-
name: GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}-ghci
-
name: QEMU
uses: docker/setup-qemu-action@v3
-
name: Buildx
uses: docker/setup-buildx-action@v3
-
name: Push
uses: docker/build-push-action@v6
with:
context: ghci/
file: ghci/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
GCC_VERSION=${{ env.GCC_VERSION }}
MPICH_VERSION=${{ env.MPICH_VERSION }}
SZIP_VERSION=${{ env.SZIP_VERSION }}
HDF5_VERSION=${{ env.HDF5_VERSION }}
NETCDFC_VERSION=${{ env.NETCDFC_VERSION }}
NETCDFCXX_VERSION=${{ env.NETCDFCXX_VERSION }}
NETCDFFORTRAN_VERSION=${{ env.NETCDFFORTRAN_VERSION }}
PNETCDF_VERSION=${{ env.PNETCDF_VERSION }}