diff options
author | Galen Guyer <galen@galenguyer.com> | 2022-12-07 16:14:29 -0500 |
---|---|---|
committer | Galen Guyer <galen@galenguyer.com> | 2022-12-07 16:14:29 -0500 |
commit | 21d1942383cbaa090b86edb65020a9a4bfac9f92 (patch) | |
tree | 1ba970fad5ff7abf8b8a0b58e54ac578a86945bf /docker-bake.hcl | |
parent | 9f4554ffd3b3eda1d16bcb06ea5a90293ea83153 (diff) |
Diffstat (limited to 'docker-bake.hcl')
-rw-r--r-- | docker-bake.hcl | 48 |
1 files changed, 47 insertions, 1 deletions
diff --git a/docker-bake.hcl b/docker-bake.hcl index 2ec4674..201863e 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -1,4 +1,5 @@ variable "ALPINE_VER" { default = "UNSET" } +variable "DEBIAN_VER" { default = "UNSET" } variable "NGINX_MAINLINE" { default = "UNSET" } variable "NGINX_STABLE" { default = "UNSET" } variable "PCRE2_VER" { default = "UNSET" } @@ -6,7 +7,7 @@ variable "CORE_COUNT" { default = "1" } variable "REGISTRY" { default = "local" } group "default" { - targets = ["alpine"] + targets = ["alpine", "debian"] } group "alpine" { targets = ["alpine-base", "alpine-spa", "alpine-autoindex"] @@ -21,6 +22,14 @@ group "alpine-autoindex" { targets = ["alpine-mainline-autoindex", "alpine-stable-autoindex"] } +group "debian" { + targets = ["debian-base"] +} +group "debian-base" { + targets = ["debian-mainline", "debian-stable"] +} + + target "alpine-mainline" { context = "alpine/base/" args = { @@ -143,3 +152,40 @@ target "alpine-stable-autoindex" { "${REGISTRY}/nginx:${NGINX_STABLE}-alpine${ALPINE_VER}-autoindex", ] } + + +target "debian-mainline" { + context = "debian/base/" + args = { + DEBIAN_VER="${DEBIAN_VER}" + NGINX_VER="${NGINX_MAINLINE}" + PCRE2_VER="${PCRE2_VER}" + CORE_COUNT="${CORE_COUNT}" + } + platforms = ["linux/amd64", "linux/386", "linux/arm/v6", "linux/arm/v7", "linux/arm64"] + tags = [ + "${REGISTRY}/nginx:debian", + "${REGISTRY}/nginx:debian${DEBIAN_VER}", + "${REGISTRY}/nginx:mainline-debian", + "${REGISTRY}/nginx:mainline-debian${DEBIAN_VER}", + "${REGISTRY}/nginx:${NGINX_MAINLINE}-debian", + "${REGISTRY}/nginx:${NGINX_MAINLINE}-debian${DEBIAN_VER}", + ] +} + +target "debian-stable" { + context = "debian/base/" + args = { + DEBIAN_VER="${DEBIAN_VER}" + NGINX_VER="${NGINX_STABLE}" + PCRE2_VER="${PCRE2_VER}" + CORE_COUNT="${CORE_COUNT}" + } + platforms = ["linux/amd64", "linux/386", "linux/arm/v6", "linux/arm/v7", "linux/arm64"] + tags = [ + "${REGISTRY}/nginx:stable-debian", + "${REGISTRY}/nginx:stable-debian${DEBIAN_VER}", + "${REGISTRY}/nginx:${NGINX_STABLE}-debian", + "${REGISTRY}/nginx:${NGINX_STABLE}-debian${DEBIAN_VER}", + ] +} |