From 7e68b413b277f36ccb5936e0fefcbc687d80c203 Mon Sep 17 00:00:00 2001 From: smerle33 Date: Tue, 22 Aug 2023 11:35:34 +0200 Subject: [PATCH] add debug --- resources/io/jenkins/infra/docker/Makefile | 3 +++ resources/io/jenkins/infra/docker/docker-bake.override.hcl | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/io/jenkins/infra/docker/Makefile b/resources/io/jenkins/infra/docker/Makefile index 1fc5773f7..6bcfc2f3e 100644 --- a/resources/io/jenkins/infra/docker/Makefile +++ b/resources/io/jenkins/infra/docker/Makefile @@ -57,6 +57,9 @@ build: ## Build the Docker Image $(IMAGE_NAME) from $(IMAGE_DOCKERFILE) buildbake: ## Build the Docker Image(s) with dockerbake file @echo "== Building from DockerBake file" + ## debug env variable + env + ## end debug docker buildx create --use docker buildx bake -f "$(call FixPath,$(DOCKER_BAKE_FILE))" --print docker buildx bake -f "$(call FixPath,$(DOCKER_BAKE_FILE))" diff --git a/resources/io/jenkins/infra/docker/docker-bake.override.hcl b/resources/io/jenkins/infra/docker/docker-bake.override.hcl index 4e873e7ad..8d85bea29 100644 --- a/resources/io/jenkins/infra/docker/docker-bake.override.hcl +++ b/resources/io/jenkins/infra/docker/docker-bake.override.hcl @@ -12,7 +12,7 @@ variable "PLATFORMS" { default = "linux/arm64" } -variable "DOCKERFILE" { +variable "IMAGE_DOCKERFILE" { default = "Dockerfile" } @@ -27,7 +27,7 @@ function "full_image_name" { } target "default" { - dockerfile = "$(DOCKERFILE)" + dockerfile = "$(IMAGE_DOCKERFILE)" context = "$(IMAGE_DIR)" tags = [ full_image_name("latest"),