-
Notifications
You must be signed in to change notification settings - Fork 23
/
docker-bake.hcl
56 lines (51 loc) · 1.92 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
function "generate_tags" {
params = [image, tags]
result = formatlist("%s:%s", image, tags)
}
target "docker-metadata-action" {}
target "_common" {
platforms = ["linux/amd64", "linux/arm64"]
context = "tdrive"
inherits = ["docker-metadata-action"]
}
target "backend" {
inherits = ["_common"]
dockerfile = "docker/tdrive-node/Dockerfile"
target = "production"
tags = concat(
generate_tags("docker.io/twakedrive/tdrive-node", target.docker-metadata-action.tags),
generate_tags("docker-registry.linagora.com/tdrive/tdrive-node", target.docker-metadata-action.tags),
)
}
target "frontend" {
inherits = ["_common"]
dockerfile = "docker/tdrive-frontend/Dockerfile"
tags = concat(
generate_tags("docker.io/twakedrive/tdrive-frontend", target.docker-metadata-action.tags),
generate_tags("docker-registry.linagora.com/tdrive/tdrive-frontend", target.docker-metadata-action.tags),
)
}
target "onlyoffice-connector" {
inherits = ["_common"]
dockerfile = "docker/onlyoffice-connector/Dockerfile"
tags = concat(
generate_tags("docker.io/twakedrive/onlyoffice-connector", target.docker-metadata-action.tags),
generate_tags("docker-registry.linagora.com/tdrive/onlyoffice-connector", target.docker-metadata-action.tags),
)
}
target "ldap-sync" {
inherits = ["_common"]
dockerfile = "docker/tdrive-ldap-sync/Dockerfile"
tags = concat(
generate_tags("docker.io/twakedrive/tdrive-ldap-sync", target.docker-metadata-action.tags),
generate_tags("docker-registry.linagora.com/tdrive/tdrive-ldap-sync", target.docker-metadata-action.tags),
)
}
target "nextcloud-migration" {
inherits = ["_common"]
dockerfile = "docker/tdrive-nextcloud-migration/Dockerfile"
tags = concat(
generate_tags("docker.io/twakedrive/tdrive-nextcloud-migration", target.docker-metadata-action.tags),
generate_tags("docker-registry.linagora.com/tdrive/tdrive-nextcloud-migration", target.docker-metadata-action.tags),
)
}