Skip to content

Commit 8308bf1

Browse files
committed
Indent with 4 spaces for readability
1 parent 3cd41d5 commit 8308bf1

File tree

1 file changed

+64
-64
lines changed

1 file changed

+64
-64
lines changed

docker-bake.hcl

+64-64
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,93 @@
11
group "default" {
2-
targets = ["build-php", "php", "php-fpm", "console-zip", "console", "php-fpm-dev"]
2+
targets = ["build-php", "php", "php-fpm", "console-zip", "console", "php-fpm-dev"]
33
}
44

55
variable "CPU" {
6-
default = "x86"
6+
default = "x86"
77
}
88
variable "PHP_VERSION" {
9-
default = "80"
9+
default = "80"
1010
}
1111
variable "IMAGE_VERSION_SUFFIX" {
12-
default = "x86_64"
12+
default = "x86_64"
1313
}
1414
variable "DOCKER_PLATFORM" {
15-
default = "linux/amd64"
15+
default = "linux/amd64"
1616
}
1717

1818
target "build-php" {
19-
dockerfile = "php-${PHP_VERSION}/Dockerfile"
20-
target = "build-environment"
21-
tags = ["bref/build-php-${PHP_VERSION}"]
22-
args = {
23-
"IMAGE_VERSION_SUFFIX" = "${IMAGE_VERSION_SUFFIX}"
24-
}
25-
platforms = ["${DOCKER_PLATFORM}"]
19+
dockerfile = "php-${PHP_VERSION}/Dockerfile"
20+
target = "build-environment"
21+
tags = ["bref/build-php-${PHP_VERSION}"]
22+
args = {
23+
"IMAGE_VERSION_SUFFIX" = "${IMAGE_VERSION_SUFFIX}"
24+
}
25+
platforms = ["${DOCKER_PLATFORM}"]
2626
}
2727

2828
target "php" {
29-
dockerfile = "php-${PHP_VERSION}/Dockerfile"
30-
target = "function"
31-
tags = ["bref/php-${PHP_VERSION}"]
32-
args = {
33-
"IMAGE_VERSION_SUFFIX" = "${IMAGE_VERSION_SUFFIX}"
34-
}
35-
contexts = {
36-
"bref/build-php-${PHP_VERSION}" = "target:build-php"
37-
}
38-
platforms = ["${DOCKER_PLATFORM}"]
29+
dockerfile = "php-${PHP_VERSION}/Dockerfile"
30+
target = "function"
31+
tags = ["bref/php-${PHP_VERSION}"]
32+
args = {
33+
"IMAGE_VERSION_SUFFIX" = "${IMAGE_VERSION_SUFFIX}"
34+
}
35+
contexts = {
36+
"bref/build-php-${PHP_VERSION}" = "target:build-php"
37+
}
38+
platforms = ["${DOCKER_PLATFORM}"]
3939
}
4040

4141
target "php-fpm" {
42-
dockerfile = "php-${PHP_VERSION}/Dockerfile"
43-
target = "fpm"
44-
tags = ["bref/php-${PHP_VERSION}-fpm"]
45-
args = {
46-
"IMAGE_VERSION_SUFFIX" = "${IMAGE_VERSION_SUFFIX}"
47-
}
48-
contexts = {
49-
"bref/build-php-${PHP_VERSION}" = "target:build-php"
50-
"bref/php-${PHP_VERSION}" = "target:php"
51-
}
52-
platforms = ["${DOCKER_PLATFORM}"]
42+
dockerfile = "php-${PHP_VERSION}/Dockerfile"
43+
target = "fpm"
44+
tags = ["bref/php-${PHP_VERSION}-fpm"]
45+
args = {
46+
"IMAGE_VERSION_SUFFIX" = "${IMAGE_VERSION_SUFFIX}"
47+
}
48+
contexts = {
49+
"bref/build-php-${PHP_VERSION}" = "target:build-php"
50+
"bref/php-${PHP_VERSION}" = "target:php"
51+
}
52+
platforms = ["${DOCKER_PLATFORM}"]
5353
}
5454

5555
target "console-zip" {
56-
context = "layers/console"
57-
target = "console-zip"
58-
tags = ["bref/console-zip"]
59-
args = {
60-
PHP_VERSION = "${PHP_VERSION}"
61-
}
62-
platforms = ["${DOCKER_PLATFORM}"]
56+
context = "layers/console"
57+
target = "console-zip"
58+
tags = ["bref/console-zip"]
59+
args = {
60+
PHP_VERSION = "${PHP_VERSION}"
61+
}
62+
platforms = ["${DOCKER_PLATFORM}"]
6363
}
6464

6565
target "console" {
66-
context = "layers/console"
67-
target = "console"
68-
tags = ["bref/php-${PHP_VERSION}-console"]
69-
args = {
70-
PHP_VERSION = "${PHP_VERSION}"
71-
}
72-
contexts = {
73-
"bref/build-php-${PHP_VERSION}" = "target:build-php"
74-
"bref/php-${PHP_VERSION}" = "target:php"
75-
}
76-
platforms = ["${DOCKER_PLATFORM}"]
66+
context = "layers/console"
67+
target = "console"
68+
tags = ["bref/php-${PHP_VERSION}-console"]
69+
args = {
70+
PHP_VERSION = "${PHP_VERSION}"
71+
}
72+
contexts = {
73+
"bref/build-php-${PHP_VERSION}" = "target:build-php"
74+
"bref/php-${PHP_VERSION}" = "target:php"
75+
}
76+
platforms = ["${DOCKER_PLATFORM}"]
7777
}
7878

7979
target "php-fpm-dev" {
80-
context = "layers/fpm-dev"
81-
tags = ["bref/php-${PHP_VERSION}-fpm-dev"]
82-
args = {
83-
PHP_VERSION = "${PHP_VERSION}"
84-
"CPU" = "${CPU}"
85-
}
86-
contexts = {
87-
"bref/build-php-${PHP_VERSION}" = "target:build-php"
88-
"bref/php-${PHP_VERSION}" = "target:php"
89-
"bref/php-${PHP_VERSION}-fpm" = "target:php-fpm"
90-
"bref/local-api-gateway" = "docker-image://bref/local-api-gateway:latest"
91-
}
92-
platforms = ["${DOCKER_PLATFORM}"]
80+
context = "layers/fpm-dev"
81+
tags = ["bref/php-${PHP_VERSION}-fpm-dev"]
82+
args = {
83+
PHP_VERSION = "${PHP_VERSION}"
84+
"CPU" = "${CPU}"
85+
}
86+
contexts = {
87+
"bref/build-php-${PHP_VERSION}" = "target:build-php"
88+
"bref/php-${PHP_VERSION}" = "target:php"
89+
"bref/php-${PHP_VERSION}-fpm" = "target:php-fpm"
90+
"bref/local-api-gateway" = "docker-image://bref/local-api-gateway:latest"
91+
}
92+
platforms = ["${DOCKER_PLATFORM}"]
9393
}

0 commit comments

Comments
 (0)