-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-bake.hcl
41 lines (34 loc) · 1.62 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
variable "PHP_VERSION" {
default = "8.0"
}
variable "BUILD_TYPE" {
default = "std"
}
variable "COMPOSER_AUTH" {
default = ""
}
target "cli" {
cache-from = ["type=registry,ref=pixelfederation/swoole-bundle-cache:${PHP_VERSION}-${BUILD_TYPE}-cli"]
cache-to = ["type=registry,ref=pixelfederation/swoole-bundle-cache:${PHP_VERSION}-${BUILD_TYPE}-cli,mode=max"]
output = ["type=registry"]
}
target "composer" {
cache-from = ["type=registry,ref=pixelfederation/swoole-bundle-cache:${PHP_VERSION}-${BUILD_TYPE}-composer"]
cache-to = ["type=registry,ref=pixelfederation/swoole-bundle-cache:${PHP_VERSION}-${BUILD_TYPE}-composer,mode=max"]
output = ["type=registry"]
}
target "coverage-xdebug" {
cache-from = ["type=registry,ref=pixelfederation/swoole-bundle-cache:${PHP_VERSION}-${BUILD_TYPE}-coverage-xdebug"]
cache-to = ["type=registry,ref=pixelfederation/swoole-bundle-cache:${PHP_VERSION}-${BUILD_TYPE}-coverage-xdebug,mode=max"]
output = ["type=registry"]
}
target "coverage-pcov" {
cache-from = ["type=registry,ref=pixelfederation/swoole-bundle-cache:${PHP_VERSION}-${BUILD_TYPE}-coverage-pcov"]
cache-to = ["type=registry,ref=pixelfederation/swoole-bundle-cache:${PHP_VERSION}-${BUILD_TYPE}-coverage-pcov,mode=max"]
output = ["type=registry"]
}
target "merge-code-coverage" {
cache-from = ["type=registry,ref=pixelfederation/swoole-bundle-cache:${PHP_VERSION}-${BUILD_TYPE}-merge-code-coverage"]
cache-to = ["type=registry,ref=pixelfederation/swoole-bundle-cache:${PHP_VERSION}-${BUILD_TYPE}-merge-code-coverage,mode=max"]
output = ["type=registry"]
}