diff --git a/docker-bake.hcl b/docker-bake.hcl index 27ff39e..d0ab188 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -1,5 +1,5 @@ group "default" { - targets = ["debian-latest", "alpine-latest", "debian-15", "debian-14", "debian-13", "debian-12", "alpine-15", "alpine-14", "alpine-13", "alpine-12"] + targets = ["debian-latest", "alpine-latest", "debian-16", "debian-15", "debian-14", "debian-13", "debian-12", "alpine-16", "alpine-15", "alpine-14", "alpine-13", "alpine-12"] } variable "REGISTRY_PREFIX" { @@ -27,20 +27,40 @@ target "alpine" { target "debian-latest" { inherits = ["debian"] platforms = ["linux/amd64", "linux/arm64", "linux/arm/v7", "linux/s390x", "linux/ppc64le"] - args = {"BASETAG" = "16"} + args = {"BASETAG" = "17"} tags = [ "${REGISTRY_PREFIX}${IMAGE_NAME}:latest", + "${REGISTRY_PREFIX}${IMAGE_NAME}:17", + notequal("", BUILD_REVISION) ? "${REGISTRY_PREFIX}${IMAGE_NAME}:17-debian-${BUILD_REVISION}" : "" + ] +} + +target "alpine-latest" { + inherits = ["alpine"] + platforms = ["linux/amd64", "linux/arm64", "linux/arm/v7", "linux/s390x", "linux/ppc64le"] + args = {"BASETAG" = "17-alpine"} + tags = [ + "${REGISTRY_PREFIX}${IMAGE_NAME}:alpine", + "${REGISTRY_PREFIX}${IMAGE_NAME}:17-alpine", + notequal("", BUILD_REVISION) ? "${REGISTRY_PREFIX}${IMAGE_NAME}:17-alpine-${BUILD_REVISION}" : "" + ] +} + +target "debian-16" { + inherits = ["debian"] + platforms = ["linux/amd64", "linux/arm64", "linux/arm/v7", "linux/s390x", "linux/ppc64le"] + args = {"BASETAG" = "16"} + tags = [ "${REGISTRY_PREFIX}${IMAGE_NAME}:16", notequal("", BUILD_REVISION) ? "${REGISTRY_PREFIX}${IMAGE_NAME}:16-debian-${BUILD_REVISION}" : "" ] } -target "alpine-latest" { +target "alpine-16" { inherits = ["alpine"] platforms = ["linux/amd64", "linux/arm64", "linux/arm/v7", "linux/s390x", "linux/ppc64le"] args = {"BASETAG" = "16-alpine"} tags = [ - "${REGISTRY_PREFIX}${IMAGE_NAME}:alpine", "${REGISTRY_PREFIX}${IMAGE_NAME}:16-alpine", notequal("", BUILD_REVISION) ? "${REGISTRY_PREFIX}${IMAGE_NAME}:16-alpine-${BUILD_REVISION}" : "" ] diff --git a/generate-docker-bake.sh b/generate-docker-bake.sh index 15d1ff4..6da5684 100755 --- a/generate-docker-bake.sh +++ b/generate-docker-bake.sh @@ -3,8 +3,8 @@ set -e GOCRONVER="v0.0.11" -MAIN_TAG="16" -TAGS_EXTRA="15 14 13 12" +MAIN_TAG="17" +TAGS_EXTRA="16 15 14 13 12" PLATFORMS="linux/amd64 linux/arm64 linux/arm/v7 linux/s390x linux/ppc64le" DOCKER_BAKE_FILE="${1:-docker-bake.hcl}"