Skip to content

Commit

Permalink
tet
Browse files Browse the repository at this point in the history
  • Loading branch information
pmacius committed Aug 26, 2024
1 parent aa87e96 commit 0258bdf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ jobs:
uses: docker/bake-action@a4d7f0b5b91c14a296d792d4ec53a9db17f02e67 # v5.5.0
with:
push: true
set: TARGET_ARCH=[linux/amd64,linux/arm64]


- name: Show all built images
run: docker images
Expand Down
6 changes: 3 additions & 3 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ variable "ALFRESCO_REPO_USER_NAME" {
}

variable "TARGET_ARCH" {
default = "" # linux/amd64 linux/arm64
default = [] # e.g. ["linux/amd64"]
}

target "java_base" {
Expand Down Expand Up @@ -139,7 +139,7 @@ target "java_base" {
}
tags = ["${REGISTRY}/${REGISTRY_NAMESPACE}/alfresco-base-java:${JDIST}${JAVA_MAJOR}-${DISTRIB_NAME}${DISTRIB_MAJOR}"]
output = ["type=cacheonly"]
platforms = TARGET_ARCH != "" ? ["${TARGET_ARCH}"] : []
platforms = TARGET_ARCH != "" ? TARGET_ARCH : []
}

variable "TOMCAT_MAJOR" {
Expand Down Expand Up @@ -183,7 +183,7 @@ target "tomcat_base" {
}
tags = ["${REGISTRY}/${REGISTRY_NAMESPACE}/alfresco-base-tomcat:tomcat${TOMCAT_MAJOR}-${JDIST}${JAVA_MAJOR}-${DISTRIB_NAME}${DISTRIB_MAJOR}"]
output = ["type=cacheonly"]
platforms = TARGET_ARCH != "" ? ["${TARGET_ARCH}"] : []
platforms = TARGET_ARCH != "" ? TARGET_ARCH : []
}

target "repository" {
Expand Down

0 comments on commit 0258bdf

Please sign in to comment.