-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-bake.hcl
126 lines (105 loc) · 3 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
// Special target: https://github.com/docker/metadata-action#bake-definition
target "docker-metadata-action" {
platforms = [
"linux/amd64",
"linux/arm64"
]
}
variable "PYPY_VERSION" {
default = "7.3.17"
}
variable "ALPINE_VERSION" {
default = "3.20"
}
target "alpine-pypy-2_7" {
context = "./export"
args = {
PIP_URL = "https://bootstrap.pypa.io/pip/2.7/get-pip.py"
PYPY_BASE = "2.7"
PYPY_VERSION = "${PYPY_VERSION}"
ALPINE_VERSION = "${ALPINE_VERSION}"
}
tags = [
"cyb3rjak3/alpine-pypy:2.7-${PYPY_VERSION}-${ALPINE_VERSION}",
"ghcr.io/cyb3r-jak3/alpine-pypy:2.7-${PYPY_VERSION}-${ALPINE_VERSION}"
]
}
target "alpine-pypy-3_9" {
context = "./export"
args = {
PYPY_BASE = "3.9"
PYPY_VERSION = "7.3.16"
ALPINE_VERSION = "${ALPINE_VERSION}"
}
tags = [
"cyb3rjak3/alpine-pypy:3.9-7.3.16-${ALPINE_VERSION}",
"ghcr.io/cyb3r-jak3/alpine-pypy:3.9-7.3.16-${ALPINE_VERSION}"
]
}
target "alpine-pypy-3_10" {
context = "./export"
args = {
PYPY_BASE = "3.10"
PYPY_VERSION = "${PYPY_VERSION}"
ALPINE_VERSION = "${ALPINE_VERSION}"
}
tags = [
"cyb3rjak3/alpine-pypy:3.10-${PYPY_VERSION}-${ALPINE_VERSION}",
"ghcr.io/cyb3r-jak3/alpine-pypy:3.10-${PYPY_VERSION}-${ALPINE_VERSION}"
]
}
target "alpine-pypy-builder" {
context = "./builder"
args = {
BUILD_IMAGE = "ghcr.io/cyb3r-jak3/alpine-pypy:2.7-7.3.12-3.17"
}
tags = [
"cyb3rjak3/alpine-pypy-builder:3.17",
"ghcr.io/cyb3r-jak3/alpine-pypy-builder:3.17"
]
}
target "alpine-pypy-builder-bootstrap" {
context = "./builder"
tags = [
"cyb3rjak3/alpine-pypy-builder:3.17-bootstrap",
"ghcr.io/cyb3r-jak3/alpine-pypy-builder:3.17-bootstrap"
]
platforms = [
"linux/amd64",
"linux/arm64",
// "linux/386"
]
}
target "python-2_7" {
context = "python-2.7"
args = {
ALPINE_VERSION = "${ALPINE_VERSION}"
}
tags = [
"cyb3rjak3/python-2.7.18:${ALPINE_VERSION}",
"ghcr.io/cyb3r-jak3/python-2.7.18:${ALPINE_VERSION}"
]
platforms = [
"linux/amd64",
"linux/arm64",
"linux/riscv64"
]
}
target "alpine-pypy-2_7-release" {
inherits = ["docker-metadata-action", "alpine-pypy-2_7"]
}
target "alpine-pypy-3_9-release" {
inherits = ["docker-metadata-action", "alpine-pypy-3_9"]
}
target "alpine-pypy-3_10-release" {
inherits = ["docker-metadata-action", "alpine-pypy-3_10"]
}
target "alpine-pypy-builder-release" {
inherits = ["docker-metadata-action", "alpine-pypy-builder", ]
}
target "alpine-pypy-builder-bootstrap-release" {
inherits = ["docker-metadata-action", "alpine-pypy-builder-bootstrap"]
}
target "python-2_7-release" {
inherits = ["docker-metadata-action", "python-2_7"]
}