This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
acb.tpl.yaml
67 lines (60 loc) · 1.62 KB
/
acb.tpl.yaml
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
version: 1.0-preview-1
steps:
- id: pull-base
cmd: docker pull {{.Run.Registry}}/cmc/legal-frontend/base:latest || true
when: ["-"]
keep: true
- id: pull-build
cmd: docker pull {{.Run.Registry}}/cmc/legal-frontend/build:latest || true
when: ["-"]
keep: true
- id: base
build: >
-t {{.Run.Registry}}/cmc/legal-frontend/base
--cache-from {{.Run.Registry}}/cmc/legal-frontend/base:latest
--target base
.
when:
- pull-base
keep: true
- id: build
build: >
-t {{.Run.Registry}}/cmc/legal-frontend/build
--cache-from {{.Run.Registry}}/cmc/legal-frontend/base:latest
--cache-from {{.Run.Registry}}/cmc/legal-frontend/build:latest
--target build
.
when:
- pull-base
- pull-build
keep: true
- id: runtime
build: >
-t {{.Run.Registry}}/{{CI_IMAGE_TAG}}
--cache-from {{.Run.Registry}}/cmc/legal-frontend/base:latest
--cache-from {{.Run.Registry}}/cmc/legal-frontend/build:latest
--target runtime
.
when:
- base
- build
keep: true
- id: push-images
push:
- "{{.Run.Registry}}/cmc/legal-frontend/base:latest"
- "{{.Run.Registry}}/cmc/legal-frontend/build:latest"
- "{{.Run.Registry}}/{{CI_IMAGE_TAG}}"
when:
- runtime
- id: build-integration-tests
build: >
-f integration-tests.Dockerfile
-t {{.Run.Registry}}/cmc/legal-integration-tests:latest
.
when:
- push-images
- id: push-integration-tests
push:
- "{{.Run.Registry}}/cmc/legal-integration-tests:latest"
when:
- build-integration-tests