[ACA-4722] - add multi-arch images publish scripts (#3504)

This commit is contained in:
DominikIwanek
2023-11-06 12:47:29 -05:00
committed by GitHub
parent ed4d2cfc26
commit b98d8fd1dd
+16 -9
View File
@@ -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,16 @@ runs:
with:
branch_name: ${{ inputs.branch_name }}
- name: Publish
if: ${{ github.event.inputs.dry-run != 'true' }}
- name: Install dependencies and build project
shell: bash
run: |
npm ci && npm run build.release
echo "Running the docker with tag $TAG_VERSION"
npm ci
npm run build.release
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 }}