-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-bake.hcl
47 lines (39 loc) · 1.86 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
variable "PHP_VERSION" {
default = "8.1"
}
variable "SWOOLE" {
default = "openswoole-v22.1.2"
}
variable "COMPOSER_AUTH" {
default = ""
}
target "cli" {
cache-from = ["type=registry,ref=symfonywithswoole/swoole-bundle-cache:${PHP_VERSION}-{$SWOOLE}-cli"]
cache-to = ["type=registry,ref=symfonywithswoole/swoole-bundle-cache:${PHP_VERSION}-{$SWOOLE}-cli,mode=max"]
output = ["type=registry"]
}
target "composer" {
cache-from = ["type=registry,ref=symfonywithswoole/swoole-bundle-cache:${PHP_VERSION}-${SWOOLE}-composer"]
cache-to = ["type=registry,ref=symfonywithswoole/swoole-bundle-cache:${PHP_VERSION}-${SWOOLE}-composer,mode=max"]
output = ["type=registry"]
}
target "ci" {
cache-from = ["type=registry,ref=symfonywithswoole/swoole-bundle-cache:${PHP_VERSION}-${SWOOLE}-ci"]
cache-to = ["type=registry,ref=symfonywithswoole/swoole-bundle-cache:${PHP_VERSION}-${SWOOLE}-ci,mode=max"]
output = ["type=registry"]
}
target "coverage-xdebug" {
cache-from = ["type=registry,ref=symfonywithswoole/swoole-bundle-cache:${PHP_VERSION}-${SWOOLE}-coverage-xdebug"]
cache-to = ["type=registry,ref=symfonywithswoole/swoole-bundle-cache:${PHP_VERSION}-${SWOOLE}-coverage-xdebug,mode=max"]
output = ["type=registry"]
}
target "coverage-pcov" {
cache-from = ["type=registry,ref=symfonywithswoole/swoole-bundle-cache:${PHP_VERSION}-${SWOOLE}-coverage-pcov"]
cache-to = ["type=registry,ref=symfonywithswoole/swoole-bundle-cache:${PHP_VERSION}-${SWOOLE}-coverage-pcov,mode=max"]
output = ["type=registry"]
}
target "merge-code-coverage" {
cache-from = ["type=registry,ref=symfonywithswoole/swoole-bundle-cache:${PHP_VERSION}-merge-code-coverage"]
cache-to = ["type=registry,ref=symfonywithswoole/swoole-bundle-cache:${PHP_VERSION}-merge-code-coverage,mode=max"]
output = ["type=registry"]
}