-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-bake.hcl
142 lines (123 loc) · 3.3 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
## Documentation:
## https://docs.docker.com/build/ci/github-actions/multi-platform/#with-bake
variable "DEFAULT_TAG" { default = "wayofdev/php-base:local" }
## Special target: https://github.com/docker/metadata-action#bake-definition
target "docker-metadata-action" {
tags = ["${DEFAULT_TAG}"]
}
###########################
## PHP 8.1
###########################
target "php-81-cli-alpine" {
inherits = ["docker-metadata-action"]
context = "dist/base/8.1-cli-alpine"
dockerfile = "./Dockerfile"
}
target "php-81-fpm-alpine" {
inherits = ["docker-metadata-action"]
context = "dist/base/8.1-fpm-alpine"
dockerfile = "./Dockerfile"
}
target "php-81-supervisord-alpine" {
inherits = ["docker-metadata-action"]
context = "dist/base/8.1-supervisord-alpine"
dockerfile = "./Dockerfile"
}
###########################
## PHP 8.2
###########################
target "php-82-cli-alpine" {
inherits = ["docker-metadata-action"]
context = "dist/base/8.2-cli-alpine"
dockerfile = "./Dockerfile"
}
target "php-82-fpm-alpine" {
inherits = ["docker-metadata-action"]
context = "dist/base/8.2-fpm-alpine"
dockerfile = "./Dockerfile"
}
target "php-82-supervisord-alpine" {
inherits = ["docker-metadata-action"]
context = "dist/base/8.2-supervisord-alpine"
dockerfile = "./Dockerfile"
}
###########################
## PHP 8.3
###########################
target "php-83-cli-alpine" {
inherits = ["docker-metadata-action"]
context = "dist/base/8.3-cli-alpine"
dockerfile = "./Dockerfile"
}
target "php-83-fpm-alpine" {
inherits = ["docker-metadata-action"]
context = "dist/base/8.3-fpm-alpine"
dockerfile = "./Dockerfile"
}
target "php-83-supervisord-alpine" {
inherits = ["docker-metadata-action"]
context = "dist/base/8.3-supervisord-alpine"
dockerfile = "./Dockerfile"
}
###########################
## PHP 8.4
###########################
target "php-84-cli-alpine" {
inherits = ["docker-metadata-action"]
context = "dist/base/8.4-cli-alpine"
dockerfile = "./Dockerfile"
}
target "php-84-fpm-alpine" {
inherits = ["docker-metadata-action"]
context = "dist/base/8.4-fpm-alpine"
dockerfile = "./Dockerfile"
}
target "php-84-supervisord-alpine" {
inherits = ["docker-metadata-action"]
context = "dist/base/8.4-supervisord-alpine"
dockerfile = "./Dockerfile"
}
group "all" {
targets = [
"php-81-cli-alpine",
"php-81-fpm-alpine",
"php-81-supervisord-alpine",
"php-82-cli-alpine",
"php-82-fpm-alpine",
"php-82-supervisord-alpine",
"php-83-cli-alpine",
"php-83-fpm-alpine",
"php-83-supervisord-alpine",
"php-84-cli-alpine",
"php-84-fpm-alpine",
"php-84-supervisord-alpine",
]
}
group "php-81" {
targets = [
"php-81-cli-alpine",
"php-81-fpm-alpine",
"php-81-supervisord-alpine",
]
}
group "php-82" {
targets = [
"php-82-cli-alpine",
"php-82-fpm-alpine",
"php-82-supervisord-alpine",
]
}
group "php-83" {
targets = [
"php-83-cli-alpine",
"php-83-fpm-alpine",
"php-83-supervisord-alpine",
]
}
group "php-84" {
targets = [
"php-84-cli-alpine",
"php-84-fpm-alpine",
"php-84-supervisord-alpine",
]
}