diff options
Diffstat (limited to 'docker-bake.hcl')
-rw-r--r-- | docker-bake.hcl | 48 |
1 files changed, 45 insertions, 3 deletions
diff --git a/docker-bake.hcl b/docker-bake.hcl index d1caa67..4ca410d 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -8,12 +8,17 @@ group "default" { targets = ["alpine"] } group "alpine" { + targets = ["alpine-base", "alpine-spa"] +} +group "alpine-base" { targets = ["alpine-mainline", "alpine-stable"] } - +group "alpine-spa" { + targets = ["alpine-mainline-spa", "alpine-stable-spa"] +} target "alpine-mainline" { - context = "alpine/" + context = "alpine/base/" args = { ALPINE_VER="${ALPINE_VER}" NGINX_VER="${NGINX_MAINLINE}" @@ -33,7 +38,7 @@ target "alpine-mainline" { } target "alpine-stable" { - context = "alpine/" + context = "alpine/base/" args = { ALPINE_VER="${ALPINE_VER}" NGINX_VER="${NGINX_STABLE}" @@ -48,3 +53,40 @@ target "alpine-stable" { "${REGISTRY}/nginx:${NGINX_STABLE}-alpine${ALPINE_VER}", ] } + +target "alpine-mainline-spa" { + context = "alpine/spa/" + args = { + ALPINE_VER="${ALPINE_VER}" + NGINX_VER="${NGINX_MAINLINE}" + CORE_COUNT="${CORE_COUNT}" + } + tags = [ + "${REGISTRY}/nginx:spa", + "${REGISTRY}/nginx:alpine-spa", + "${REGISTRY}/nginx:alpine${ALPINE_VER}-spa", + "${REGISTRY}/nginx:mainline-spa", + "${REGISTRY}/nginx:mainline-alpine-spa", + "${REGISTRY}/nginx:mainline-alpine${ALPINE_VER}-spa", + "${REGISTRY}/nginx:${NGINX_MAINLINE}-spa", + "${REGISTRY}/nginx:${NGINX_MAINLINE}-alpine-spa", + "${REGISTRY}/nginx:${NGINX_MAINLINE}-alpine${ALPINE_VER}-spa", + ] +} + +target "alpine-stable-spa" { + context = "alpine/spa/" + args = { + ALPINE_VER="${ALPINE_VER}" + NGINX_VER="${NGINX_STABLE}" + CORE_COUNT="${CORE_COUNT}" + } + tags = [ + "${REGISTRY}/nginx:stable-spa", + "${REGISTRY}/nginx:stable-alpine-spa", + "${REGISTRY}/nginx:stable-alpine${ALPINE_VER}-spa", + "${REGISTRY}/nginx:${NGINX_STABLE}-spa", + "${REGISTRY}/nginx:${NGINX_STABLE}-alpine-spa", + "${REGISTRY}/nginx:${NGINX_STABLE}-alpine${ALPINE_VER}-spa", + ] +} |