-
Notifications
You must be signed in to change notification settings - Fork 6
169 lines (152 loc) Β· 4.83 KB
/
deploy_images.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
161
162
163
164
165
166
167
168
169
name: Deploy images
on:
workflow_dispatch:
inputs:
skip_push:
description: Skip pushing images? (true|false)
required: false
default: 'false'
skip_docs:
description: Skip the docs image? (true|false)
required: false
default: 'false'
jobs:
py37:
runs-on: ubuntu-latest
steps:
- name: Checkout ποΈ
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Build and deploy image π³
uses: docker/build-push-action@v1
with:
path: docker
dockerfile: docker/Dockerfile_37
repository: cmsml/cmsml
tags: "3.7"
push: ${{ github.event.inputs.skip_push != 'true' }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
py38:
runs-on: ubuntu-latest
steps:
- name: Checkout ποΈ
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Build and deploy image π³
uses: docker/build-push-action@v1
with:
path: docker
dockerfile: docker/Dockerfile_38
repository: cmsml/cmsml
tags: "3.8"
push: ${{ github.event.inputs.skip_push != 'true' }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
py39:
runs-on: ubuntu-latest
steps:
- name: Checkout ποΈ
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Build and deploy image π³
uses: docker/build-push-action@v1
with:
path: docker
dockerfile: docker/Dockerfile_39
repository: cmsml/cmsml
tags: 3.9,3,latest
push: ${{ github.event.inputs.skip_push != 'true' }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
py39_base:
runs-on: ubuntu-latest
if: ${{ github.event.inputs.skip_push != 'true' }}
steps:
- name: Checkout ποΈ
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Build and deploy image π³
uses: docker/build-push-action@v1
with:
path: docker
dockerfile: docker/Dockerfile_39_base
repository: cmsml/cmsml
tags: 3.9_base
push: ${{ github.event.inputs.skip_push != 'true' }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
py310:
runs-on: ubuntu-latest
steps:
- name: Checkout ποΈ
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Build and deploy image π³
uses: docker/build-push-action@v1
with:
path: docker
dockerfile: docker/Dockerfile_310
repository: cmsml/cmsml
tags: "3.10"
push: ${{ github.event.inputs.skip_push != 'true' }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
py311:
runs-on: ubuntu-latest
steps:
- name: Checkout ποΈ
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Build and deploy image π³
uses: docker/build-push-action@v1
with:
path: docker
dockerfile: docker/Dockerfile_311
repository: cmsml/cmsml
tags: "3.11"
push: ${{ github.event.inputs.skip_push != 'true' }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
py311-cuda:
runs-on: ubuntu-latest
steps:
- name: Checkout ποΈ
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Build and deploy image π³
uses: docker/build-push-action@v1
with:
path: docker
dockerfile: docker/Dockerfile_311_cuda
repository: cmsml/cmsml
tags: "3.11"
push: ${{ github.event.inputs.skip_push != 'true' }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
docs:
needs: py39
runs-on: ubuntu-latest
if: ${{ github.event.inputs.skip_docs != 'true' && github.event.inputs.skip_push != 'true' }}
steps:
- name: Checkout ποΈ
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Build and deploy image π³
uses: docker/build-push-action@v1
with:
path: docker
dockerfile: docker/Dockerfile_docs
repository: cmsml/cmsml
tags: docs
push: ${{ github.event.inputs.skip_push != 'true' }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}