8
8
IMAGE_NAME : fabiocicerchia/nginx-lua
9
9
10
10
jobs :
11
- auto_update :
11
+ artifacts :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v2
15
15
16
+ - name : Archive metadata artifacts
17
+ uses : actions/upload-artifact@v2
18
+ with :
19
+ name : metadata
20
+ path : docs/metadata
21
+ retention-days : 1
22
+
23
+ auto_update :
24
+ runs-on : ubuntu-latest
25
+ needs : artifacts
26
+ steps :
27
+ - uses : actions/checkout@v2
28
+
16
29
- name : Generate Supported Versions
17
30
run : make auto-update-and-commit
18
31
32
+ - name : cancelling
33
+
34
+ if : ${{ job.status != 'success' }}
35
+
36
+
19
37
docker_alpine :
20
38
runs-on : ubuntu-latest
39
+ needs : auto_update
21
40
steps :
22
41
- uses : actions/checkout@v2
23
42
43
+ - name : Restore metadata artifacts
44
+ uses : actions/download-artifact@v2
45
+ with :
46
+ name : metadata-alpine
47
+ path : docs/metadata/*alpine*
48
+
24
49
- name : Build images
25
50
run : make build-alpine
26
51
@@ -35,11 +60,25 @@ jobs:
35
60
run : make push-alpine
36
61
if : github.ref == 'refs/heads/master'
37
62
63
+ - name : Archive metadata artifacts
64
+ uses : actions/upload-artifact@v2
65
+ with :
66
+ name : metadata-alpine
67
+ path : docs/metadata/*alpine*
68
+ retention-days : 1
69
+
38
70
docker_amazonlinux :
39
71
runs-on : ubuntu-latest
72
+ needs : auto_update
40
73
steps :
41
74
- uses : actions/checkout@v2
42
75
76
+ - name : Restore metadata artifacts
77
+ uses : actions/download-artifact@v2
78
+ with :
79
+ name : metadata-amazonlinux
80
+ path : docs/metadata/*amazonlinux*
81
+
43
82
- name : Build images
44
83
run : make build-amazonlinux
45
84
@@ -54,11 +93,25 @@ jobs:
54
93
run : make push-amazonlinux
55
94
if : github.ref == 'refs/heads/master'
56
95
96
+ - name : Archive metadata artifacts
97
+ uses : actions/upload-artifact@v2
98
+ with :
99
+ name : metadata-amazonlinux
100
+ path : docs/metadata/*amazonlinux*
101
+ retention-days : 1
102
+
57
103
docker_centos :
58
104
runs-on : ubuntu-latest
105
+ needs : auto_update
59
106
steps :
60
107
- uses : actions/checkout@v2
61
108
109
+ - name : Restore metadata artifacts
110
+ uses : actions/download-artifact@v2
111
+ with :
112
+ name : metadata-centos
113
+ path : docs/metadata/*centos*
114
+
62
115
- name : Build images
63
116
run : make build-centos
64
117
@@ -73,11 +126,25 @@ jobs:
73
126
run : make push-centos
74
127
if : github.ref == 'refs/heads/master'
75
128
129
+ - name : Archive metadata artifacts
130
+ uses : actions/upload-artifact@v2
131
+ with :
132
+ name : metadata-centos
133
+ path : docs/metadata/*centos*
134
+ retention-days : 1
135
+
76
136
docker_debian :
77
137
runs-on : ubuntu-latest
138
+ needs : auto_update
78
139
steps :
79
140
- uses : actions/checkout@v2
80
141
142
+ - name : Restore metadata artifacts
143
+ uses : actions/download-artifact@v2
144
+ with :
145
+ name : metadata-debian
146
+ path : docs/metadata/*debian*
147
+
81
148
- name : Build images
82
149
run : make build-debian
83
150
@@ -92,11 +159,25 @@ jobs:
92
159
run : make push-debian
93
160
if : github.ref == 'refs/heads/master'
94
161
162
+ - name : Archive metadata artifacts
163
+ uses : actions/upload-artifact@v2
164
+ with :
165
+ name : metadata-debian
166
+ path : docs/metadata/*debian*
167
+ retention-days : 1
168
+
95
169
docker_fedora :
96
170
runs-on : ubuntu-latest
171
+ needs : auto_update
97
172
steps :
98
173
- uses : actions/checkout@v2
99
174
175
+ - name : Restore metadata artifacts
176
+ uses : actions/download-artifact@v2
177
+ with :
178
+ name : metadata-fedora
179
+ path : docs/metadata/*fedora*
180
+
100
181
- name : Build images
101
182
run : make build-fedora
102
183
@@ -111,11 +192,25 @@ jobs:
111
192
run : make push-fedora
112
193
if : github.ref == 'refs/heads/master'
113
194
195
+ - name : Archive metadata artifacts
196
+ uses : actions/upload-artifact@v2
197
+ with :
198
+ name : metadata-fedora
199
+ path : docs/metadata/*fedora*
200
+ retention-days : 1
201
+
114
202
docker_ubuntu :
115
203
runs-on : ubuntu-latest
204
+ needs : auto_update
116
205
steps :
117
206
- uses : actions/checkout@v2
118
207
208
+ - name : Restore metadata artifacts
209
+ uses : actions/download-artifact@v2
210
+ with :
211
+ name : metadata-ubuntu
212
+ path : docs/metadata/*ubuntu*
213
+
119
214
- name : Build images
120
215
run : make build-ubuntu
121
216
@@ -129,3 +224,66 @@ jobs:
129
224
- name : Push images
130
225
run : make push-ubuntu
131
226
if : github.ref == 'refs/heads/master'
227
+
228
+ - name : Archive metadata artifacts
229
+ uses : actions/upload-artifact@v2
230
+ with :
231
+ name : metadata-ubuntu
232
+ path : docs/metadata/*ubuntu*
233
+ retention-days : 1
234
+
235
+ metadata :
236
+ runs-on : ubuntu-latest
237
+ needs : [docker_alpine, docker_amazonlinux, docker_centos, docker_debian, docker_fedora, docker_ubuntu]
238
+ steps :
239
+ - uses : actions/checkout@v2
240
+
241
+ - name : Restore alpine metadata artifacts
242
+ uses : actions/download-artifact@v2
243
+ with :
244
+ name : metadata-alpine
245
+ path : docs/metadata/*alpine*
246
+
247
+ - name : Restore amazonlinux metadata artifacts
248
+ uses : actions/download-artifact@v2
249
+ with :
250
+ name : metadata-amazonlinux
251
+ path : docs/metadata/*amazonlinux*
252
+
253
+ - name : Restore centos metadata artifacts
254
+ uses : actions/download-artifact@v2
255
+ with :
256
+ name : metadata-centos
257
+ path : docs/metadata/*centos*
258
+
259
+ - name : Restore debian metadata artifacts
260
+ uses : actions/download-artifact@v2
261
+ with :
262
+ name : metadata-debian
263
+ path : docs/metadata/*debian*
264
+
265
+ - name : Restore fedora metadata artifacts
266
+ uses : actions/download-artifact@v2
267
+ with :
268
+ name : metadata-fedora
269
+ path : docs/metadata/*fedora*
270
+
271
+ - name : Restore ubuntu metadata artifacts
272
+ uses : actions/download-artifact@v2
273
+ with :
274
+ name : metadata-ubuntu
275
+ path : docs/metadata/*ubuntu*
276
+
277
+ - name : Push metadata
278
+ run : make auto-commit-metadata
279
+ if : github.ref == 'refs/heads/master'
280
+
281
+ auto_tag :
282
+ runs-on : ubuntu-latest
283
+ needs : metadata
284
+ steps :
285
+ - uses : actions/checkout@v2
286
+
287
+ - name : Create tag
288
+ run : make auto-tag
289
+ if : github.ref == 'refs/heads/master'
0 commit comments