-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
61 lines (50 loc) · 918 Bytes
/
docker-bake.hcl
File metadata and controls
61 lines (50 loc) · 918 Bytes
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
variable "VERSION" {
default = "1.0.0"
}
variable "REGISTRY_NAME" {
default = "competition-0"
}
variable "GITHUB_TOKEN" {
default = ""
}
variable "GITHUB_USER" {
default = ""
}
variable "HUGGINGFACE_TOKEN" {
default = ""
}
variable "CONTEXT" {
default = ""
}
variable "MINER_HOTKEY" {
default = ""
}
variable "DOCKERFILE" {
default = "docker/Dockerfile"
}
variable "CACHE_FROM" {
default = ""
}
variable "CACHE_TO" {
default = ""
}
group "default" {
targets = ["gen404-image"]
}
target "gen404-image" {
platforms = ["linux/amd64"]
context = CONTEXT
dockerfile = DOCKERFILE
args = {
GITHUB_USER = GITHUB_USER
GITHUB_TOKEN = GITHUB_TOKEN
}
secret = [
"id=github_token,env=GITHUB_TOKEN"
]
cache-from = split(";", CACHE_FROM)
cache-to = split(";", CACHE_TO)
tags = [
"europe-docker.pkg.dev/gen-456515/${REGISTRY_NAME}/${MINER_HOTKEY}:${VERSION}",
]
}