From ad4498b2ec7ef3dcb328d871bd7c8aee070193b7 Mon Sep 17 00:00:00 2001 From: DominikIwanek Date: Fri, 3 Nov 2023 11:25:37 +0100 Subject: [PATCH] [ACA-4722] - add multi-arch images publish scripts --- .github/actions/publish-image/action.yml | 25 ++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/actions/publish-image/action.yml b/.github/actions/publish-image/action.yml index a78f54ea59..e9275ce30b 100644 --- a/.github/actions/publish-image/action.yml +++ b/.github/actions/publish-image/action.yml @@ -26,6 +26,12 @@ inputs: runs: using: "composite" steps: + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Registry uses: docker/login-action@v2 with: @@ -38,15 +44,10 @@ runs: with: branch_name: ${{ inputs.branch_name }} - - name: Publish - if: ${{ github.event.inputs.dry-run != 'true' }} - shell: bash - run: | - npm ci && npm run build.release - echo "Running the docker with tag $TAG_VERSION" - - npx @alfresco/adf-cli docker-publish \ - --dockerRepo "${{ inputs.registry }}/alfresco/alfresco-content-app" \ - --buildArgs "PROJECT_NAME=content-ce" \ - --dockerTags "$TAG_VERSION" \ - --pathProject "$(pwd)" + - name: Build and push multi-platform image + uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: ${{ github.event.inputs.dry-run != 'true' }} + tags: ${{ inputs.registry }}/alfresco/alfresco-content-app:${{ env.TAG_VERSION }}