-
Notifications
You must be signed in to change notification settings - Fork 3
88 lines (77 loc) · 2.28 KB
/
ci.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: CI
on:
push:
branches: [develop]
pull_request:
branches: [develop]
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: twsearle/orca-jedi/ci-almalinux9:v1.4.0
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout current repo
uses: actions/checkout@v3
with:
lfs: true
- name: checkout jedicmake
uses: actions/checkout@v3
with:
path: ci/jedicmake
repository: JCSDA-internal/jedi-cmake
submodules: true
token: ${{ secrets.GHCR_PAT }}
- name: checkout oops
uses: actions/checkout@v3
with:
path: ci/oops
repository: JCSDA-internal/oops
token: ${{ secrets.GHCR_PAT }}
- name: checkout vader
uses: actions/checkout@v3
with:
path: ci/vader
repository: JCSDA-internal/vader
token: ${{ secrets.GHCR_PAT }}
- name: checkout saber
uses: actions/checkout@v3
with:
path: ci/saber
repository: JCSDA-internal/saber
token: ${{ secrets.GHCR_PAT }}
- name: checkout ioda
uses: actions/checkout@v3
with:
path: ci/ioda
repository: JCSDA-internal/ioda
token: ${{ secrets.GHCR_PAT }}
- name: checkout ufo
uses: actions/checkout@v3
with:
path: ci/ufo
repository: JCSDA-internal/ufo
token: ${{ secrets.GHCR_PAT }}
- name: checkout atlas-data
uses: actions/checkout@v3
with:
path: ci/atlas-data
repository: MetOffice/atlas-data
lfs: true
token: ${{ secrets.GHCR_PAT }}
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: twsearle
password: ${{ secrets.GHCR_PAT }}
- name: Pull Docker image
run: docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: build and test
run: |
docker run --rm \
--entrypoint=/usr/local/src/orca-jedi/ci/build-and-test.sh \
--workdir=/usr/local/src/orca-jedi/ci \
--volume $PWD:/usr/local/src/orca-jedi \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}