diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index a56f1a63..a2627419 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -13,6 +13,7 @@ env: ACS_VALUES_VERSION: cfb0d426eff14a8b581c31e61db5e670da09ba3b ARTIFACT_NAME: alfresco-docker-images REGISTRY: ghcr.io + REGISTRY_NAMESPACE: Alfresco TAG: ${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} concurrency: diff --git a/docker-bake.hcl b/docker-bake.hcl index 98d1786b..3c6887b6 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -26,6 +26,10 @@ variable "REGISTRY" { default = "localhost" } +variable "REGISTRY_NAMESPACE" { + default = "Alfresco" +} + variable "TAG" { default = "latest" } @@ -129,7 +133,7 @@ target "java_base" { "org.opencontainers.image.source" = "$LABEL_SOURCE" "org.opencontainers.image.authors" = "${LABEL_AUTHOR}" } - tags = ["${REGISTRY}/alfresco-base-java:${JDIST}${JAVA_MAJOR}-${DISTRIB_NAME}${DISTRIB_MAJOR}"] + tags = ["${REGISTRY}/${REGISTRY_NAMESPACE}/alfresco-base-java:${JDIST}${JAVA_MAJOR}-${DISTRIB_NAME}${DISTRIB_MAJOR}"] output = ["type=cacheonly"] } @@ -172,7 +176,7 @@ target "tomcat_base" { "org.opencontainers.image.title" = "${PRODUCT_LINE} Tomcat" "org.opencontainers.image.description" = "A base image shipping Tomcat for Alfresco Products" } - tags = ["${REGISTRY}/alfresco-base-tomcat:tomcat${TOMCAT_MAJOR}-${JDIST}${JAVA_MAJOR}-${DISTRIB_NAME}${DISTRIB_MAJOR}"] + tags = ["${REGISTRY}/${REGISTRY_NAMESPACE}/alfresco-base-tomcat:tomcat${TOMCAT_MAJOR}-${JDIST}${JAVA_MAJOR}-${DISTRIB_NAME}${DISTRIB_MAJOR}"] output = ["type=cacheonly"] } @@ -193,7 +197,7 @@ target "repository" { "org.opencontainers.image.title" = "${PRODUCT_LINE} Content Repository" "org.opencontainers.image.description" = "Alfresco Content Services Repository" } - tags = ["${REGISTRY}/alfresco-content-repository:${TAG}"] + tags = ["${REGISTRY}/${REGISTRY_NAMESPACE}/alfresco-content-repository:${TAG}"] output = ["type=docker"] } @@ -232,7 +236,7 @@ target "search_liveindexing" { "org.opencontainers.image.title" = "${PRODUCT_LINE} Enterprise Search - ${liveindexing.name}" "org.opencontainers.image.description" = "${PRODUCT_LINE} Enterprise Search - ${liveindexing.name} live indexing" } - tags = ["${REGISTRY}/${liveindexing.artifact}:${TAG}"] + tags = ["${REGISTRY}/${REGISTRY_NAMESPACE}/${liveindexing.artifact}:${TAG}"] output = ["type=docker"] } @@ -261,7 +265,7 @@ target "ats_trouter" { "org.opencontainers.image.title" = "${PRODUCT_LINE} ATS Trouter" "org.opencontainers.image.description" = "Alfresco Transform Service Trouter" } - tags = ["${REGISTRY}/alfresco-transform-router:${TAG}"] + tags = ["${REGISTRY}/${REGISTRY_NAMESPACE}/alfresco-transform-router:${TAG}"] output = ["type=docker"] } @@ -290,7 +294,7 @@ target "ats_sfs" { "org.opencontainers.image.title" = "${PRODUCT_LINE} ATS Shared File Store" "org.opencontainers.image.description" = "Alfresco Transform Service ATS Shared File Store" } - tags = ["${REGISTRY}/alfresco-shared-file-store:${TAG}"] + tags = ["${REGISTRY}/${REGISTRY_NAMESPACE}/alfresco-shared-file-store:${TAG}"] output = ["type=docker"] } @@ -319,7 +323,7 @@ target "tengine_imagemagick" { "org.opencontainers.image.title" = "${PRODUCT_LINE} Transform Engine Imagemagick" "org.opencontainers.image.description" = "Alfresco Transform Engine Imagemagick" } - tags = ["${REGISTRY}/alfresco-imagemagick:${TAG}"] + tags = ["${REGISTRY}/${REGISTRY_NAMESPACE}/alfresco-imagemagick:${TAG}"] output = ["type=docker"] } @@ -348,7 +352,7 @@ target "tengine_libreoffice" { "org.opencontainers.image.title" = "${PRODUCT_LINE} Transform Engine LibreOffice" "org.opencontainers.image.description" = "Alfresco Transform Engine LibreOffice" } - tags = ["${REGISTRY}/alfresco-libreoffice:${TAG}"] + tags = ["${REGISTRY}/${REGISTRY_NAMESPACE}/alfresco-libreoffice:${TAG}"] output = ["type=docker"] } @@ -377,7 +381,7 @@ target "tengine_misc" { "org.opencontainers.image.title" = "${PRODUCT_LINE} Transform Engine Misc" "org.opencontainers.image.description" = "Alfresco Transform Engine Misc" } - tags = ["${REGISTRY}/alfresco-misc:${TAG}"] + tags = ["${REGISTRY}/${REGISTRY_NAMESPACE}/alfresco-misc:${TAG}"] output = ["type=docker"] } @@ -406,7 +410,7 @@ target "tengine_tika" { "org.opencontainers.image.title" = "${PRODUCT_LINE} Transform Engine Tika" "org.opencontainers.image.description" = "Alfresco Transform Engine Tika" } - tags = ["${REGISTRY}/alfresco-tika:${TAG}"] + tags = ["${REGISTRY}/${REGISTRY_NAMESPACE}/alfresco-tika:${TAG}"] output = ["type=docker"] } @@ -435,7 +439,7 @@ target "tengine_pdfrenderer" { "org.opencontainers.image.title" = "${PRODUCT_LINE} Transform Engine PDF Renderer" "org.opencontainers.image.description" = "Alfresco Transform Engine PDF Renderer" } - tags = ["${REGISTRY}/alfresco-pdf-renderer:${TAG}"] + tags = ["${REGISTRY}/${REGISTRY_NAMESPACE}/alfresco-pdf-renderer:${TAG}"] output = ["type=docker"] } @@ -464,7 +468,7 @@ target "tengine_aio" { "org.opencontainers.image.title" = "${PRODUCT_LINE} Transform Engine All In One" "org.opencontainers.image.description" = "Alfresco Transform Engine All In One" } - tags = ["${REGISTRY}/alfresco-transform-core-aio:${TAG}"] + tags = ["${REGISTRY}/${REGISTRY_NAMESPACE}/alfresco-transform-core-aio:${TAG}"] output = ["type=docker"] } @@ -493,7 +497,7 @@ target "connector_msteams" { "org.opencontainers.image.title" = "${PRODUCT_LINE} Connector Microsoft Teams" "org.opencontainers.image.description" = "Alfresco Connector Microsoft Teams" } - tags = ["${REGISTRY}/alfresco-ms-teams-service:${TAG}"] + tags = ["${REGISTRY}/${REGISTRY_NAMESPACE}/alfresco-ms-teams-service:${TAG}"] output = ["type=docker"] } @@ -522,6 +526,6 @@ target "connector_ms365" { "org.opencontainers.image.title" = "${PRODUCT_LINE} Microsoft 365 Connector" "org.opencontainers.image.description" = "Alfresco Microsoft 365 Connector" } - tags = ["${REGISTRY}/alfresco-ooi-service:${TAG}"] + tags = ["${REGISTRY}/${REGISTRY_NAMESPACE}/alfresco-ooi-service:${TAG}"] output = ["type=docker"] }