-
Notifications
You must be signed in to change notification settings - Fork 147
/
docker-bake-agents.hcl
79 lines (69 loc) · 2.21 KB
/
docker-bake-agents.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------
#
# make is calling the ./scripts/build_images.sh who calls docker buildx bake
#
variable "registry" {
default = ""
}
variable "tag" {
default = ""
}
variable "tag_strategy" {
default = ""
}
variable "versionRover" {
default = ""
}
group "rover_agents" {
targets = ["github", "tfc", "azdo", "gitlab"]
}
target "github" {
dockerfile = "./agents/github/Dockerfile"
tags = ["${registry}rover-agent:${tag}-${tag_strategy}github"]
args = {
versionGithubRunner = versionGithubRunner
versionRover = versionRover
USERNAME = USERNAME
}
platforms = ["linux/amd64","linux/arm64"]
cache-to = ["type=local,dest=/tmp/.buildx-cache,mode=max"]
cache-from = ["type=local,src=/tmp/.buildx-cache"]
}
target "azdo" {
dockerfile = "./agents/azure_devops/Dockerfile"
tags = ["${registry}rover-agent:${tag}-${tag_strategy}azdo"]
args = {
versionAzdo = versionAzdo
versionRover = versionRover
USERNAME = USERNAME
}
platforms = ["linux/amd64","linux/arm64"]
cache-to = ["type=local,dest=/tmp/.buildx-cache,mode=max"]
cache-from = ["type=local,src=/tmp/.buildx-cache"]
}
target "tfc" {
dockerfile = "./agents/tfc/Dockerfile"
tags = ["${registry}rover-agent:${tag}-${tag_strategy}tfc"]
args = {
versionTfc = versionTfc
versionRover = versionRover
USERNAME = USERNAME
}
platforms = ["linux/amd64" ]
cache-to = ["type=local,dest=/tmp/.buildx-cache,mode=max"]
cache-from = ["type=local,src=/tmp/.buildx-cache"]
}
target "gitlab" {
dockerfile = "./agents/gitlab/Dockerfile"
tags = ["${registry}rover-agent:${tag}-${tag_strategy}gitlab"]
args = {
versionRover = versionRover
USERNAME = USERNAME
}
platforms = ["linux/amd64","linux/arm64"]
cache-to = ["type=local,dest=/tmp/.buildx-cache,mode=max"]
cache-from = ["type=local,src=/tmp/.buildx-cache"]
}