-
Notifications
You must be signed in to change notification settings - Fork 1
161 lines (145 loc) Β· 5.39 KB
/
containers.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
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
name: "π¦ Publish (base images)"
on:
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
workflow_dispatch:
inputs:
version:
description: 'version to tag images'
required: true
jobs:
set-version:
runs-on: ubuntu-latest
name: "π· Set version value"
outputs:
version: ${{ steps.output_version.outputs.version }}
steps:
- name: "π Set VERSION value from dispatch inputs"
id: get_version_dispatch
if: ${{ github.event_name == 'workflow_dispatch' }}
run: echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
- name: "π Set VERSION value from pushed tag"
id: get_version_tag
if: ${{ github.event_name == 'push' }}
run: echo "VERSION=$(echo "${{ github.ref }}" | cut -d/ -f3)" >> $GITHUB_ENV
- name: "π· Record VERSION for follow-up jobs"
id: output_version
run: |
echo "version=${{ env.VERSION }}" >> $GITHUB_OUTPUT
check-deployment:
name: "β
PyPI deployment check"
runs-on: ubuntu-latest
needs: ['set-version']
steps:
- name: "β±οΈ Wait up to 20 minutes for the new clams-python is deployed on PyPI"
uses: nev7n/wait_for_response@v1
with:
url: "https://pypi.org/project/clams-python/${{ needs.set-version.outputs.version }}/"
responseCode: 200
timeout: 1200000
interval: 5000
call-build-base:
name: "π€ Call container workflow with the base"
needs: ['set-version', 'check-deployment']
uses: ./.github/workflows/container.yml
secrets: inherit
with:
buildfilename: './container/Containerfile'
version: ${{ needs.set-version.outputs.version }}
call-build-jdk8:
name: "π€ Call container workflow with `jdk8`"
needs: ['set-version', 'call-build-base']
uses: ./.github/workflows/container.yml
secrets: inherit
with:
buildfilename: './container/jdk8.containerfile'
version: ${{ needs.set-version.outputs.version }}
call-build-tf2:
name: "π€ Call container workflow with `tf2`"
needs: ['set-version', 'call-build-base']
uses: ./.github/workflows/container.yml
secrets: inherit
with:
buildfilename: './container/tf2.containerfile'
version: ${{ needs.set-version.outputs.version }}
call-build-torch:
name: "π€ Call container workflow with `torch`"
needs: ['set-version', 'call-build-base']
uses: ./.github/workflows/container.yml
secrets: inherit
with:
buildfilename: './container/torch.containerfile'
version: ${{ needs.set-version.outputs.version }}
call-build-torch2:
name: "π€ Call container workflow with `torch2`"
needs: ['set-version', 'call-build-base']
uses: ./.github/workflows/container.yml
secrets: inherit
with:
buildfilename: './container/torch2.containerfile'
version: ${{ needs.set-version.outputs.version }}
call-build-ffmpeg:
name: "π€ Call container workflow with `ffmpeg`"
needs: ['set-version', 'call-build-base']
uses: ./.github/workflows/container.yml
secrets: inherit
with:
buildfilename: './container/ffmpeg.containerfile'
version: ${{ needs.set-version.outputs.version }}
call-build-ffmpeg-tf2:
name: "π€ Call container workflow with `ffmpeg-tf2`"
needs: ['set-version', 'call-build-ffmpeg']
uses: ./.github/workflows/container.yml
secrets: inherit
with:
buildfilename: './container/ffmpeg-tf2.containerfile'
version: ${{ needs.set-version.outputs.version }}
call-build-ffmpeg-torch:
name: "π€ Call container workflow with `ffmpeg-torch`"
needs: ['set-version', 'call-build-ffmpeg']
uses: ./.github/workflows/container.yml
secrets: inherit
with:
buildfilename: './container/ffmpeg-torch.containerfile'
version: ${{ needs.set-version.outputs.version }}
call-build-ffmpeg-torch2:
name: "π€ Call container workflow with `ffmpeg-torch2`"
needs: ['set-version', 'call-build-ffmpeg']
uses: ./.github/workflows/container.yml
secrets: inherit
with:
buildfilename: './container/ffmpeg-torch2.containerfile'
version: ${{ needs.set-version.outputs.version }}
call-build-opencv4:
name: "π€ Call container workflow with `opencv4`"
needs: ['set-version', 'call-build-ffmpeg']
uses: ./.github/workflows/container.yml
secrets: inherit
with:
buildfilename: './container/opencv4.containerfile'
version: ${{ needs.set-version.outputs.version }}
call-build-opencv4-tf2:
name: "π€ Call container workflow with `opencv4-tf2`"
needs: ['set-version', 'call-build-opencv4']
uses: ./.github/workflows/container.yml
secrets: inherit
with:
buildfilename: './container/opencv4-tf2.containerfile'
version: ${{ needs.set-version.outputs.version }}
call-build-opencv4-torch:
name: "π€ Call container workflow with `opencv4-torch`"
needs: ['set-version', 'call-build-opencv4']
uses: ./.github/workflows/container.yml
secrets: inherit
with:
buildfilename: './container/opencv4-torch.containerfile'
version: ${{ needs.set-version.outputs.version }}
call-build-opencv4-torch2:
name: "π€ Call container workflow with `opencv4-torch2`"
needs: ['set-version', 'call-build-opencv4']
uses: ./.github/workflows/container.yml
secrets: inherit
with:
buildfilename: './container/opencv4-torch2.containerfile'
version: ${{ needs.set-version.outputs.version }}