-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-bake.hcl
155 lines (125 loc) · 4.97 KB
/
docker-bake.hcl
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
variable "TAG" {
default = "latest"
}
variable "GITHUB_REPOSITORY" {
default = "navikt/foreldrepengesoknad"
}
variable "CACHE_TAG" {
default = "latest"
}
group "default" {
targets = ["foreldrepengesoknad", "engangsstonad", "svangerskapspengesoknad", "foreldrepengeoversikt", "planlegger", "veiviser-hvor-mye", "veiviser-fp-eller-es", "veiviser-hva-skjer-nar"]
}
target "docker-metadata-action" {}
target "foreldrepengesoknad" {
inherits = ["docker-metadata-action"]
// tags = ["ghcr.io/${GITHUB_REPOSITORY}/foreldrepengesoknad:${TAG}"]
dockerfile = "Dockerfile"
cache-to = ["type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/foreldrepengesoknad/build-cache:${CACHE_TAG},mode=max"]
cache-from = [
"type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/foreldrepengesoknad/build-cache:${CACHE_TAG}",
"type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/foreldrepengesoknad/build-cache:master"
]
args = {
APP = "foreldrepengesoknad",
SERVER = "server"
}
}
target "svangerskapspengesoknad" {
inherits = ["docker-metadata-action"]
// tags = ["ghcr.io/${GITHUB_REPOSITORY}/svangerskapspengesoknad:${TAG}"]
dockerfile = "Dockerfile"
cache-to = ["type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/svangerskapspengesoknad/build-cache:${CACHE_TAG},mode=max"]
cache-from = [
"type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/svangerskapspengesoknad/build-cache:${CACHE_TAG}",
"type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/svangerskapspengesoknad/build-cache:master"
]
args = {
APP = "svangerskapspengesoknad",
SERVER = "server"
}
}
target "engangsstonad" {
inherits = ["docker-metadata-action"]
// tags = ["ghcr.io/${GITHUB_REPOSITORY}/engangsstonad:${TAG}"]
dockerfile = "Dockerfile"
cache-to = ["type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/engangsstonad/build-cache:${CACHE_TAG},mode=max"]
cache-from = [
"type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/engangsstonad/build-cache:${CACHE_TAG}",
"type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/engangsstonad/build-cache:master"
]
args = {
APP = "engangsstonad",
SERVER = "server"
}
}
target "foreldrepengeoversikt" {
inherits = ["docker-metadata-action"]
// tags = ["ghcr.io/${GITHUB_REPOSITORY}/foreldrepengeoversikt:${TAG}"]
dockerfile = "Dockerfile"
cache-to = ["type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/foreldrepengeoversikt/build-cache:${CACHE_TAG},mode=max"]
cache-from = [
"type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/foreldrepengeoversikt/build-cache:${CACHE_TAG}",
"type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/foreldrepengeoversikt/build-cache:master"
]
args = {
APP = "foreldrepengeoversikt",
SERVER = "server"
}
}
target "planlegger" {
inherits = ["docker-metadata-action"]
// tags = ["ghcr.io/${GITHUB_REPOSITORY}/planlegger:${TAG}"]
dockerfile = "Dockerfile"
cache-to = ["type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/planlegger/build-cache:${CACHE_TAG},mode=max"]
cache-from = [
"type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/planlegger/build-cache:${CACHE_TAG}",
"type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/planlegger/build-cache:master"
]
args = {
APP = "planlegger",
SERVER = "server-uinnlogget"
}
}
target "veiviser-fp-eller-es" {
inherits = ["docker-metadata-action"]
// tags = ["ghcr.io/${GITHUB_REPOSITORY}/veiviser-fp-eller-es:${TAG}"]
dockerfile = "Dockerfile"
cache-to = ["type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/veiviser-fp-eller-es/build-cache:${CACHE_TAG},mode=max"]
cache-from = [
"type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/veiviser-fp-eller-es/build-cache:${CACHE_TAG}",
"type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/veiviser-fp-eller-es/build-cache:master"
]
args = {
APP = "veiviser-fp-eller-es",
SERVER = "server-uinnlogget"
}
}
target "veiviser-hva-skjer-nar" {
inherits = ["docker-metadata-action"]
// tags = ["ghcr.io/${GITHUB_REPOSITORY}/veiviser-hva-skjer-nar:${TAG}"]
dockerfile = "Dockerfile"
cache-to = ["type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/veiviser-hva-skjer-nar/build-cache:${CACHE_TAG},mode=max"]
cache-from = [
"type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/veiviser-hva-skjer-nar/build-cache:${CACHE_TAG}",
"type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/veiviser-hva-skjer-nar/build-cache:master"
]
args = {
APP = "veiviser-hva-skjer-nar",
SERVER = "server-uinnlogget"
}
}
target "veiviser-hvor-mye" {
inherits = ["docker-metadata-action"]
// tags = ["ghcr.io/${GITHUB_REPOSITORY}/veiviser-hvor-mye:${TAG}"]
dockerfile = "Dockerfile"
cache-to = ["type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/veiviser-hvor-mye/build-cache:${CACHE_TAG},mode=max"]
cache-from = [
"type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/veiviser-hvor-mye/build-cache:${CACHE_TAG}",
"type=registry,ref=ghcr.io/${GITHUB_REPOSITORY}/veiviser-hvor-mye/build-cache:master"
]
args = {
APP = "veiviser-hvor-mye",
SERVER = "server-uinnlogget"
}
}