Skip to content

Commit

Permalink
switch to builx
Browse files Browse the repository at this point in the history
  • Loading branch information
smerle33 committed Aug 8, 2023
1 parent 6c086fa commit 5cf3de6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/io/jenkins/infra/docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ lint: ## Lint the $(IMAGE_DOCKERFILE) content

build: ## Build the Docker Image $(IMAGE_NAME) from $(IMAGE_DOCKERFILE)
@echo "== Building $(IMAGE_NAME) from $(call FixPath,$(IMAGE_DOCKERFILE)) with docker:"
docker image build \
docker buildx ls
docker context ls
docker buildx build \
--platform "$(IMAGE_PLATFORM)" \
--tag "$(IMAGE_NAME)" \
--build-arg "GIT_COMMIT_REV=$(GIT_COMMIT_REV)" \
--build-arg "GIT_SCM_URL=$(GIT_SCM_URL)" \
Expand All @@ -47,7 +50,6 @@ build: ## Build the Docker Image $(IMAGE_NAME) from $(IMAGE_DOCKERFILE)
--label "org.label-schema.vcs-ref=$(GIT_COMMIT_REV)" \
--label "org.opencontainers.image.created=$(BUILD_DATE)" \
--label "org.label-schema.build-date=$(BUILD_DATE)" \
--platform "$(IMAGE_PLATFORM)" \
--file "$(call FixPath,$(IMAGE_DOCKERFILE))" \
"$(IMAGE_DIR)"
@echo "== Build succeeded"
Expand Down

0 comments on commit 5cf3de6

Please sign in to comment.