2021-05-29 00:51:41 +08:00
|
|
|
# Use this file from the top of the repo, with `-f ci/release-image/docker-bake.hcl`
|
|
|
|
|
|
|
|
# Uses env var VERSION if set;
|
|
|
|
# normally, this is set by ci/lib.sh
|
|
|
|
variable "VERSION" {
|
|
|
|
default = "latest"
|
|
|
|
}
|
|
|
|
|
|
|
|
group "default" {
|
2021-07-30 02:01:46 +08:00
|
|
|
targets = ["code-server"]
|
2021-05-29 00:51:41 +08:00
|
|
|
}
|
|
|
|
|
2021-07-30 02:01:46 +08:00
|
|
|
target "code-server" {
|
2021-05-29 00:51:41 +08:00
|
|
|
dockerfile = "ci/release-image/Dockerfile"
|
2021-09-09 04:00:34 +08:00
|
|
|
tags = [
|
|
|
|
"docker.io/codercom/code-server:latest",
|
|
|
|
notequal("latest",VERSION) ? "docker.io/codercom/code-server:${VERSION}" : "",
|
2022-05-11 05:11:06 +08:00
|
|
|
"ghcr.io/coder/code-server:latest",
|
|
|
|
notequal("latest",VERSION) ? "ghcr.io/coder/code-server:${VERSION}" : "",
|
2021-09-09 04:00:34 +08:00
|
|
|
]
|
2021-07-30 02:01:46 +08:00
|
|
|
platforms = ["linux/amd64", "linux/arm64"]
|
2021-05-29 00:51:41 +08:00
|
|
|
}
|