From 016a9162817b7e2eb60ccee32c82c99e95b27f31 Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Tue, 23 Aug 2022 15:18:35 +0200 Subject: [PATCH] Add older flavours --- bake.hcl | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/bake.hcl b/bake.hcl index 5d52eb9..e9ac6c0 100644 --- a/bake.hcl +++ b/bake.hcl @@ -1,6 +1,11 @@ -# docker-bake.dev.hcl group "default" { - targets = ["postgres-14", "postgres-13"] + targets = [ + "postgres-14", + "postgres-13", + "postgres-12", + "postgres-11", + "postgres-10" + ] } target "postgres-14" { @@ -22,3 +27,33 @@ target "postgres-13" { PGSQL_VERSION = 13 } } + +target "postgres-12" { + context = "." + dockerfile = "Dockerfile" + platforms = ["arm64","amd64"] + tags = ["benzine/postgres:12"] + args = { + PGSQL_VERSION = 12 + } +} + +target "postgres-11" { + context = "." + dockerfile = "Dockerfile" + platforms = ["arm64","amd64"] + tags = ["benzine/postgres:11"] + args = { + PGSQL_VERSION = 11 + } +} + +target "postgres-10" { + context = "." + dockerfile = "Dockerfile" + platforms = ["arm64","amd64"] + tags = ["benzine/postgres:10"] + args = { + PGSQL_VERSION = 10 + } +}