Skip to content
This repository was archived by the owner on Jan 11, 2025. It is now read-only.

Commit d716a3c

Browse files
- cancel autoupdate in case of failure
- generate and push metadata - fixes #11 - updated reamde - small fixes
1 parent 2a0a0d4 commit d716a3c

File tree

87 files changed

+16628
-18
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+16628
-18
lines changed

.github/workflows/auto_update.yml

+159-1
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,44 @@ env:
88
IMAGE_NAME: fabiocicerchia/nginx-lua
99

1010
jobs:
11-
auto_update:
11+
artifacts:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2
1515

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+
1629
- name: Generate Supported Versions
1730
run: make auto-update-and-commit
1831

32+
- name: cancelling
33+
uses: andymckay/[email protected]
34+
if: ${{ job.status != 'success' }}
35+
36+
1937
docker_alpine:
2038
runs-on: ubuntu-latest
39+
needs: auto_update
2140
steps:
2241
- uses: actions/checkout@v2
2342

43+
- name: Restore metadata artifacts
44+
uses: actions/download-artifact@v2
45+
with:
46+
name: metadata-alpine
47+
path: docs/metadata/*alpine*
48+
2449
- name: Build images
2550
run: make build-alpine
2651

@@ -35,11 +60,25 @@ jobs:
3560
run: make push-alpine
3661
if: github.ref == 'refs/heads/master'
3762

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+
3870
docker_amazonlinux:
3971
runs-on: ubuntu-latest
72+
needs: auto_update
4073
steps:
4174
- uses: actions/checkout@v2
4275

76+
- name: Restore metadata artifacts
77+
uses: actions/download-artifact@v2
78+
with:
79+
name: metadata-amazonlinux
80+
path: docs/metadata/*amazonlinux*
81+
4382
- name: Build images
4483
run: make build-amazonlinux
4584

@@ -54,11 +93,25 @@ jobs:
5493
run: make push-amazonlinux
5594
if: github.ref == 'refs/heads/master'
5695

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+
57103
docker_centos:
58104
runs-on: ubuntu-latest
105+
needs: auto_update
59106
steps:
60107
- uses: actions/checkout@v2
61108

109+
- name: Restore metadata artifacts
110+
uses: actions/download-artifact@v2
111+
with:
112+
name: metadata-centos
113+
path: docs/metadata/*centos*
114+
62115
- name: Build images
63116
run: make build-centos
64117

@@ -73,11 +126,25 @@ jobs:
73126
run: make push-centos
74127
if: github.ref == 'refs/heads/master'
75128

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+
76136
docker_debian:
77137
runs-on: ubuntu-latest
138+
needs: auto_update
78139
steps:
79140
- uses: actions/checkout@v2
80141

142+
- name: Restore metadata artifacts
143+
uses: actions/download-artifact@v2
144+
with:
145+
name: metadata-debian
146+
path: docs/metadata/*debian*
147+
81148
- name: Build images
82149
run: make build-debian
83150

@@ -92,11 +159,25 @@ jobs:
92159
run: make push-debian
93160
if: github.ref == 'refs/heads/master'
94161

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+
95169
docker_fedora:
96170
runs-on: ubuntu-latest
171+
needs: auto_update
97172
steps:
98173
- uses: actions/checkout@v2
99174

175+
- name: Restore metadata artifacts
176+
uses: actions/download-artifact@v2
177+
with:
178+
name: metadata-fedora
179+
path: docs/metadata/*fedora*
180+
100181
- name: Build images
101182
run: make build-fedora
102183

@@ -111,11 +192,25 @@ jobs:
111192
run: make push-fedora
112193
if: github.ref == 'refs/heads/master'
113194

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+
114202
docker_ubuntu:
115203
runs-on: ubuntu-latest
204+
needs: auto_update
116205
steps:
117206
- uses: actions/checkout@v2
118207

208+
- name: Restore metadata artifacts
209+
uses: actions/download-artifact@v2
210+
with:
211+
name: metadata-ubuntu
212+
path: docs/metadata/*ubuntu*
213+
119214
- name: Build images
120215
run: make build-ubuntu
121216

@@ -129,3 +224,66 @@ jobs:
129224
- name: Push images
130225
run: make push-ubuntu
131226
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

Comments
 (0)