-
-
Notifications
You must be signed in to change notification settings - Fork 50
211 lines (185 loc) · 7.41 KB
/
ci.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
name: CI
on:
push:
branches:
- main
pull_request:
schedule:
- cron: "0 6 * * SUN" # Once weekly on Sunday @ 0600 UTC
workflow_dispatch: null
jobs:
build:
name: ${{ matrix.cfg.DOCKERIMAGE }}:${{ matrix.cfg.DOCKERTAG }} (${{ matrix.cfg.DISTRO_ARCH }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cfg:
- DOCKERIMAGE: linux-anvil-cos7-x86_64
DOCKERFILE: linux-anvil
DOCKERTAG: latest
DISTRO_ARCH: "amd64"
DISTRO_NAME: "centos"
DISTRO_VER: "7"
SHORT_DESCRIPTION: "conda-forge build image for CentOS 7 on x86_64"
- DOCKERIMAGE: linux-anvil-ppc64le
DOCKERFILE: linux-anvil
DOCKERTAG: latest
DISTRO_ARCH: "ppc64le"
DISTRO_NAME: "centos"
DISTRO_VER: "7"
SHORT_DESCRIPTION: "conda-forge build image for CentOS 7 on ppc64le"
- DOCKERIMAGE: linux-anvil-aarch64
DOCKERFILE: linux-anvil
DOCKERTAG: latest
DISTRO_ARCH: "arm64"
DISTRO_NAME: "centos"
DISTRO_VER: "7"
SHORT_DESCRIPTION: "conda-forge build image for CentOS 7 on aarch64"
- DOCKERIMAGE: linux-anvil-cuda11.8
DOCKERFILE: linux-anvil-cuda
DOCKERTAG: "cos7"
CUDA_VER: "11.8.0"
DISTRO_ARCH: "amd64"
DISTRO_NAME: "centos"
DISTRO_VER: "7"
SHORT_DESCRIPTION: "conda-forge build image for CentOS 7 on x86_64 with CUDA 11.8"
- DOCKERIMAGE: linux-anvil-cuda11.8
DOCKERFILE: linux-anvil-cuda
DOCKERTAG: "ubi8"
CUDA_VER: "11.8.0"
DISTRO_ARCH: "amd64"
DISTRO_NAME: "ubi"
DISTRO_VER: "8"
SHORT_DESCRIPTION: "conda-forge build image for UBI 8 on x86_64 with CUDA 11.8"
- DOCKERIMAGE: linux-anvil-ppc64le-cuda11.8
DOCKERFILE: linux-anvil-cuda
DOCKERTAG: "ubi8"
CUDA_VER: "11.8.0"
DISTRO_ARCH: "ppc64le"
DISTRO_NAME: "ubi"
DISTRO_VER: "8"
SHORT_DESCRIPTION: "conda-forge build image for UBI 8 on ppc64le with CUDA 11.8"
- DOCKERIMAGE: linux-anvil-aarch64-cuda11.8
DOCKERFILE: linux-anvil-cuda
DOCKERTAG: "ubi8"
CUDA_VER: "11.8.0"
DISTRO_ARCH: "arm64"
DISTRO_NAME: "ubi"
DISTRO_VER: "8"
SHORT_DESCRIPTION: "conda-forge build image for UBI 8 on aarch64 with CUDA 11.8"
- DOCKERIMAGE: linux-anvil-alma-x86_64
DOCKERFILE: linux-anvil
DOCKERTAG: "8"
DISTRO_ARCH: "amd64"
DISTRO_NAME: "almalinux"
DISTRO_VER: "8"
SHORT_DESCRIPTION: "conda-forge build image for Alma 8 on x86_64"
- DOCKERIMAGE: linux-anvil-alma-aarch64
DOCKERFILE: linux-anvil
DOCKERTAG: "8"
DISTRO_ARCH: "arm64"
DISTRO_NAME: "almalinux"
DISTRO_VER: "8"
SHORT_DESCRIPTION: "conda-forge build image for Alma 8 on aarch64"
- DOCKERIMAGE: linux-anvil-alma-ppc64le
DOCKERFILE: linux-anvil
DOCKERTAG: "8"
DISTRO_ARCH: "ppc64le"
DISTRO_NAME: "almalinux"
DISTRO_VER: "8"
SHORT_DESCRIPTION: "conda-forge build image for Alma 8 on ppc64le"
- DOCKERIMAGE: linux-anvil-alma-x86_64
DOCKERFILE: linux-anvil
DOCKERTAG: "9"
DISTRO_ARCH: "amd64"
DISTRO_NAME: "almalinux"
DISTRO_VER: "9"
SHORT_DESCRIPTION: "conda-forge build image for Alma 9 on x86_64"
- DOCKERIMAGE: linux-anvil-alma-aarch64
DOCKERFILE: linux-anvil
DOCKERTAG: "9"
DISTRO_ARCH: "arm64"
DISTRO_NAME: "almalinux"
DISTRO_VER: "9"
SHORT_DESCRIPTION: "conda-forge build image for Alma 9 on aarch64"
- DOCKERIMAGE: linux-anvil-alma-ppc64le
DOCKERFILE: linux-anvil
DOCKERTAG: "9"
DISTRO_ARCH: "ppc64le"
DISTRO_NAME: "almalinux"
DISTRO_VER: "9"
SHORT_DESCRIPTION: "conda-forge build image for Alma 9 on ppc64le"
env:
DOCKERIMAGE: ${{ matrix.cfg.DOCKERIMAGE }}
DOCKERFILE: ${{ matrix.cfg.DOCKERFILE }}
DOCKERTAG: ${{ matrix.cfg.DOCKERTAG }}
CUDA_VER: ${{ matrix.cfg.CUDA_VER }}
DISTRO_ARCH: ${{ matrix.cfg.DISTRO_ARCH }}
DISTRO_NAME: ${{ matrix.cfg.DISTRO_NAME }}
DISTRO_VER: ${{ matrix.cfg.DISTRO_VER }}
SHORT_DESCRIPTION: ${{ matrix.cfg.SHORT_DESCRIPTION }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Enable experimental features (needed for squash)
run: |
sudo cp docker_daemon_config.json /etc/docker/daemon.json
sudo service docker restart
- name: Docker info
run: |
docker info
- name: Configure qemu
run: |
./download-qemu-static.sh
- name: Build image
run: |
docker build \
--build-arg CUDA_VER \
--build-arg DISTRO_ARCH \
--build-arg DISTRO_NAME \
--build-arg DISTRO_VER \
-t condaforge/$DOCKERIMAGE:$DOCKERTAG \
-f ${DOCKERFILE:-${DOCKERIMAGE}}/Dockerfile \
--no-cache --squash .
- name: Run image
run: |
./.circleci/run_docker_build.sh
- name: Make readme file
run: |
./scripts/gen_readme
- name: Deploy
if: github.ref == 'refs/heads/main' && github.repository == 'conda-forge/docker-images'
env:
CFD_QUAY_PASSWORD: ${{ secrets.CFD_QUAY_PASSWORD }}
DH_PASSWORD: ${{ secrets.DH_PASSWORD }}
run: |
./scripts/deploy
- name: Push README to Dockerhub
if: github.ref == 'refs/heads/main' && github.repository == 'conda-forge/docker-images'
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1
env:
DOCKER_USER: condaforgebot
DOCKER_PASS: ${{ secrets.DH_PASSWORD }}
with:
destination_container_repo: condaforge/${{ matrix.cfg.DOCKERIMAGE }}:${{ matrix.cfg.DOCKERTAG }}
provider: dockerhub
short_description: "${{ matrix.cfg.SHORT_DESCRIPTION }}"
readme_file: "${{ matrix.cfg.DOCKERFILE == '' && matrix.cfg.DOCKERIMAGE || matrix.cfg.DOCKERFILE }}/README.md"
- name: Push README to Quay.io
if: github.ref == 'refs/heads/main' && github.repository == 'conda-forge/docker-images'
uses: christian-korneck/update-container-description-action@d36005551adeaba9698d8d67a296bd16fa91f8e8 # v1
env:
DOCKER_APIKEY: ${{ secrets.DOCKER_IMAGES_QUAY_API_KEY }}
with:
destination_container_repo: quay.io/condaforge/${{ matrix.cfg.DOCKERIMAGE }}:${{ matrix.cfg.DOCKERTAG }}
provider: quay
readme_file: "${{ matrix.cfg.DOCKERFILE == '' && matrix.cfg.DOCKERIMAGE || matrix.cfg.DOCKERFILE }}/README.md"
keepalive-job:
name: Keep alive
runs-on: ubuntu-latest
if: github.event_name == 'schedule'
permissions:
actions: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: gautamkrishnar/keepalive-workflow@3eb47f21355191080dca0f7662d45c192d2ef64d # 2.0.7