-
Notifications
You must be signed in to change notification settings - Fork 147
/
docker-bake.hcl
60 lines (52 loc) · 1.67 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
57
58
59
60
#-------------------------------------------------------------------------------------------------------------
# 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
#
group "default" {
targets = ["rover_local", "rover_agents"]
}
target "rover_local" {
dockerfile = "./Dockerfile"
tags = ["${tag}"]
args = {
extensionsAzureCli = extensionsAzureCli
versionDockerCompose = versionDockerCompose
versionGolang = versionGolang
versionKubectl = versionKubectl
versionKubelogin = versionKubelogin
versionPacker = versionPacker
versionPowershell = versionPowershell
versionRover = versionRover
versionTerraform = versionTerraform
versionTerraformDocs = versionTerraformDocs
versionVault = versionVault
versionAnsible = versionAnsible
versionTerrascan = versionTerrascan
versionTfupdate = versionTfupdate
}
platforms = ["linux/amd64","linux/arm64" ]
cache-to = ["type=local,dest=/tmp/.buildx-cache,mode=max"]
cache-from = ["type=local,src=/tmp/.buildx-cache"]
}
target "rover_registry" {
inherits = ["rover_local"]
tags = ["${versionRover}"]
args = {
image = versionRover
}
}
variable "registry" {
default = ""
}
variable "tag" {
default = "latest"
}
variable "versionRover" {
default = ""
}
variable "versionTerraform" {
default = ""
}