From b272a07e4c1dbdacc04ee54fe80ba9935353d1eb Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Tue, 24 May 2022 10:26:02 -0400 Subject: add autoindex configs --- docker-bake.hcl | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) (limited to 'docker-bake.hcl') diff --git a/docker-bake.hcl b/docker-bake.hcl index 4ca410d..3c318ae 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -8,7 +8,7 @@ group "default" { targets = ["alpine"] } group "alpine" { - targets = ["alpine-base", "alpine-spa"] + targets = ["alpine-base", "alpine-spa", "alpine-autoindex"] } group "alpine-base" { targets = ["alpine-mainline", "alpine-stable"] @@ -16,6 +16,9 @@ group "alpine-base" { group "alpine-spa" { targets = ["alpine-mainline-spa", "alpine-stable-spa"] } +group "alpine-autoindex" { + targets = ["alpine-mainline-autoindex", "alpine-stable-autoindex"] +} target "alpine-mainline" { context = "alpine/base/" @@ -90,3 +93,40 @@ target "alpine-stable-spa" { "${REGISTRY}/nginx:${NGINX_STABLE}-alpine${ALPINE_VER}-spa", ] } + +target "alpine-mainline-autoindex" { + context = "alpine/autoindex/" + args = { + ALPINE_VER="${ALPINE_VER}" + NGINX_VER="${NGINX_MAINLINE}" + CORE_COUNT="${CORE_COUNT}" + } + tags = [ + "${REGISTRY}/nginx:autoindex", + "${REGISTRY}/nginx:alpine-autoindex", + "${REGISTRY}/nginx:alpine${ALPINE_VER}-autoindex", + "${REGISTRY}/nginx:mainline-autoindex", + "${REGISTRY}/nginx:mainline-alpine-autoindex", + "${REGISTRY}/nginx:mainline-alpine${ALPINE_VER}-autoindex", + "${REGISTRY}/nginx:${NGINX_MAINLINE}-autoindex", + "${REGISTRY}/nginx:${NGINX_MAINLINE}-alpine-autoindex", + "${REGISTRY}/nginx:${NGINX_MAINLINE}-alpine${ALPINE_VER}-autoindex", + ] +} + +target "alpine-stable-autoindex" { + context = "alpine/autoindex/" + args = { + ALPINE_VER="${ALPINE_VER}" + NGINX_VER="${NGINX_STABLE}" + CORE_COUNT="${CORE_COUNT}" + } + tags = [ + "${REGISTRY}/nginx:stable-autoindex", + "${REGISTRY}/nginx:stable-alpine-autoindex", + "${REGISTRY}/nginx:stable-alpine${ALPINE_VER}-autoindex", + "${REGISTRY}/nginx:${NGINX_STABLE}-autoindex", + "${REGISTRY}/nginx:${NGINX_STABLE}-alpine-autoindex", + "${REGISTRY}/nginx:${NGINX_STABLE}-alpine${ALPINE_VER}-autoindex", + ] +} -- cgit v1.2.3