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"),