Skip to content

Commit

Permalink
leverage env var to target cpu architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Sep 3, 2024
1 parent cc3c138 commit e39faae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ connectors: prepare_connectors
@echo "Building Connectors images"
@docker buildx bake --no-cache --progress=plain connectors

amd64_all: docker-bake.hcl prepare_all
@echo "Building all images for amd64"
@docker buildx bake --no-cache --progress=plain --set *.platform=linux/amd64

arm64_all: docker-bake.hcl prepare_all
@echo "Building all images for arm64"
@docker buildx bake --no-cache --progress=plain --set *.platform=linux/arm64

all: docker-bake.hcl prepare_all
@echo "Building all images"
@docker buildx bake --no-cache --progress=plain
Expand Down
7 changes: 6 additions & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ variable "REGISTRY_NAMESPACE" {
default = "alfresco"
}

variable "TARGETARCH" {
default = "linux/amd64"
}

variable "TAG" {
default = "latest"
}
Expand Down Expand Up @@ -134,7 +138,8 @@ target "java_base" {
"org.opencontainers.image.authors" = "${LABEL_AUTHOR}"
}
tags = ["${REGISTRY}/${REGISTRY_NAMESPACE}/alfresco-base-java:${JDIST}${JAVA_MAJOR}-${DISTRIB_NAME}${DISTRIB_MAJOR}"]
output = ["type=cacheonly"]
output = ["type=docker"]
platforms = split(",", "${TARGETARCH}")
}

variable "TOMCAT_MAJOR" {
Expand Down

0 comments on commit e39faae

Please sign in to comment.