@@ -3,10 +3,7 @@ name: CI
3
3
on : [push, pull_request]
4
4
5
5
env :
6
- CACHE_IMAGE : fmrcampos/docker-ci-cache
7
- GPR_CACHE_IMAGE : docker.pkg.github.com/${{ github.repository }}/docker-ci-cache
8
6
CACHE_SEED : 1
9
- DOCKER_BUILDKIT : 1
10
7
NODE_VERSION : 14.4.0
11
8
12
9
jobs :
27
24
- name : Check out repository
28
25
uses : actions/checkout@v2
29
26
30
- - uses : whoan/docker-build-with-cache-action@master
31
- with :
32
- image_name : ${{ env.CACHE_IMAGE }}
33
- image_tag : stage
34
- build_extra_args : " --cache-from ${{ env.CACHE_IMAGE }}:static --cache-from ${{ env.CACHE_IMAGE }}:build --cache-from ${{ env.CACHE_IMAGE }}:stage --build-arg BUILDKIT_INLINE_CACHE=1"
35
- push_image_and_stages : false
36
-
37
27
- uses : actions/setup-python@v2
38
28
with :
39
29
python-version : 3.8
@@ -121,13 +111,6 @@ jobs:
121
111
- name : Check out repository
122
112
uses : actions/checkout@v2
123
113
124
- - uses : whoan/docker-build-with-cache-action@master
125
- with :
126
- image_name : ${{ env.CACHE_IMAGE }}
127
- image_tag : stage
128
- build_extra_args : " --cache-from ${{ env.CACHE_IMAGE }}:static --cache-from ${{ env.CACHE_IMAGE }}:build --cache-from ${{ env.CACHE_IMAGE }}:stage --build-arg BUILDKIT_INLINE_CACHE=1"
129
- push_image_and_stages : false
130
-
131
114
- uses : actions/setup-python@v2
132
115
with :
133
116
python-version : 3.8
@@ -143,13 +126,6 @@ jobs:
143
126
- name : Check out repository
144
127
uses : actions/checkout@v2
145
128
146
- - uses : whoan/docker-build-with-cache-action@master
147
- with :
148
- image_name : ${{ env.CACHE_IMAGE }}
149
- image_tag : stage
150
- build_extra_args : " --cache-from ${{ env.CACHE_IMAGE }}:static --cache-from ${{ env.CACHE_IMAGE }}:build --cache-from ${{ env.CACHE_IMAGE }}:stage --build-arg BUILDKIT_INLINE_CACHE=1"
151
- push_image_and_stages : false
152
-
153
129
- uses : actions/setup-python@v2
154
130
with :
155
131
python-version : 3.8
@@ -165,13 +141,6 @@ jobs:
165
141
- name : Check out repository
166
142
uses : actions/checkout@v2
167
143
168
- - uses : whoan/docker-build-with-cache-action@master
169
- with :
170
- image_name : ${{ env.CACHE_IMAGE }}
171
- image_tag : stage
172
- build_extra_args : " --cache-from ${{ env.CACHE_IMAGE }}:static --cache-from ${{ env.CACHE_IMAGE }}:build --cache-from ${{ env.CACHE_IMAGE }}:stage --build-arg BUILDKIT_INLINE_CACHE=1"
173
- push_image_and_stages : false
174
-
175
144
- uses : actions/setup-python@v2
176
145
with :
177
146
python-version : 3.8
@@ -205,13 +174,6 @@ jobs:
205
174
- name : Check out repository
206
175
uses : actions/checkout@v2
207
176
208
- - uses : whoan/docker-build-with-cache-action@master
209
- with :
210
- image_name : ${{ env.CACHE_IMAGE }}
211
- image_tag : stage
212
- build_extra_args : " --cache-from ${{ env.CACHE_IMAGE }}:static --cache-from ${{ env.CACHE_IMAGE }}:build --cache-from ${{ env.CACHE_IMAGE }}:stage --build-arg BUILDKIT_INLINE_CACHE=1"
213
- push_image_and_stages : false
214
-
215
177
- name : Check licenses
216
178
run : bin/licenses
217
179
@@ -221,13 +183,6 @@ jobs:
221
183
- name : Check out repository
222
184
uses : actions/checkout@v2
223
185
224
- - uses : whoan/docker-build-with-cache-action@master
225
- with :
226
- image_name : ${{ env.CACHE_IMAGE }}
227
- image_tag : stage
228
- build_extra_args : " --cache-from ${{ env.CACHE_IMAGE }}:static --cache-from ${{ env.CACHE_IMAGE }}:build --cache-from ${{ env.CACHE_IMAGE }}:stage --build-arg BUILDKIT_INLINE_CACHE=1"
229
- push_image_and_stages : false
230
-
231
186
- uses : actions/setup-python@v2
232
187
with :
233
188
python-version : 3.8
@@ -241,13 +196,6 @@ jobs:
241
196
- name : Check out repository
242
197
uses : actions/checkout@v2
243
198
244
- - uses : whoan/docker-build-with-cache-action@master
245
- with :
246
- image_name : ${{ env.CACHE_IMAGE }}
247
- image_tag : static
248
- build_extra_args : " --target static --cache-from ${{ env.CACHE_IMAGE }}:static --build-arg BUILDKIT_INLINE_CACHE=1"
249
- push_image_and_stages : false
250
-
251
199
- name : Static Lint Check
252
200
run : |
253
201
npm install eslint --save-dev
@@ -260,13 +208,6 @@ jobs:
260
208
- name : Check out repository
261
209
uses : actions/checkout@v2
262
210
263
- - uses : whoan/docker-build-with-cache-action@master
264
- with :
265
- image_name : ${{ env.CACHE_IMAGE }}
266
- image_tag : static
267
- build_extra_args : " --target static --cache-from ${{ env.CACHE_IMAGE }}:static --build-arg BUILDKIT_INLINE_CACHE=1"
268
- push_image_and_stages : false
269
-
270
211
- name : Cache node modules
271
212
uses : actions/cache@v2
272
213
env :
@@ -295,13 +236,6 @@ jobs:
295
236
- name : Check out repository
296
237
uses : actions/checkout@v2
297
238
298
- - uses : whoan/docker-build-with-cache-action@master
299
- with :
300
- image_name : ${{ env.CACHE_IMAGE }}
301
- image_tag : static
302
- build_extra_args : " --target static --cache-from ${{ env.CACHE_IMAGE }}:static --build-arg BUILDKIT_INLINE_CACHE=1"
303
- push_image_and_stages : false
304
-
305
239
- name : Cache node version manager
306
240
uses : actions/cache@v2
307
241
env :
@@ -336,4 +270,4 @@ jobs:
336
270
run : npm install -D babel
337
271
338
272
- name : Static Pipeline Check
339
- run : bin/static_pipeline
273
+ run : bin/static_pipeline # this periodically fails for no reason, just rerun the job if needed
0 commit comments