-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
94 lines (87 loc) · 2.28 KB
/
docker-bake.hcl
File metadata and controls
94 lines (87 loc) · 2.28 KB
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
variable "IMAGE_NAME" {
default = "lephare/php"
}
variable "DEBIAN_LATEST_VERSION" {
default = "trixie"
}
variable "PHP_LATEST_VERSION" {
default = "8.5"
}
// Special target: https://github.com/docker/metadata-action#bake-definition
target "docker-metadata-action" {
args = {
PHP_EXTENSIONS = "@composer apcu exif gd imagick intl memcached opcache pdo_mysql pdo_pgsql pgsql soap zip"
}
platforms = [
"linux/amd64",
"linux/arm64"
]
}
target "php-8-2" {
inherits = ["docker-metadata-action"]
name = "php-8-2-${debian-version}"
matrix = {
debian-version = ["bullseye", "bookworm", "trixie"]
}
args = {
DEBIAN_VERSION = debian-version
PHP_TIMEZONE = "Europe/Paris"
PHP_VERSION = "8.2"
}
tags = [
"${IMAGE_NAME}:8.2-${debian-version}",
debian-version == DEBIAN_LATEST_VERSION ? "${IMAGE_NAME}:8.2" : "",
]
}
target "php-8-3" {
inherits = ["docker-metadata-action"]
name = "php-8-3-${debian-version}"
matrix = {
debian-version = ["bullseye", "bookworm", "trixie"]
}
args = {
DEBIAN_VERSION = debian-version
PHP_TIMEZONE = "Europe/Paris"
PHP_VERSION = "8.3"
}
tags = [
"${IMAGE_NAME}:8.3-${debian-version}",
debian-version == DEBIAN_LATEST_VERSION ? "${IMAGE_NAME}:8.3" : "",
]
}
target "php-8-4" {
inherits = ["docker-metadata-action"]
name = "php-8-4-${debian-version}"
matrix = {
debian-version = ["bullseye", "bookworm", "trixie"]
}
args = {
DEBIAN_VERSION = debian-version
PHP_TIMEZONE = "UTC"
PHP_VERSION = "8.4"
}
tags = [
"${IMAGE_NAME}:8.4-${debian-version}",
debian-version == DEBIAN_LATEST_VERSION ? "${IMAGE_NAME}:8.4" : "",
]
}
target "php-8-5" {
inherits = ["docker-metadata-action"]
name = "php-8-5-${debian-version}"
matrix = {
debian-version = ["bookworm", "trixie"]
}
args = {
DEBIAN_VERSION = debian-version
PHP_TIMEZONE = "UTC"
PHP_VERSION = "8.5"
}
tags = [
"${IMAGE_NAME}:8.5-${debian-version}",
debian-version == DEBIAN_LATEST_VERSION ? "${IMAGE_NAME}:8.5" : "",
"${IMAGE_NAME}:8-${debian-version}",
debian-version == DEBIAN_LATEST_VERSION ? "${IMAGE_NAME}:8" : "",
"${IMAGE_NAME}:${debian-version}",
debian-version == DEBIAN_LATEST_VERSION ? "${IMAGE_NAME}:latest" : ""
]
}