Skip to content

Commit

Permalink
[ACA-4722] - add multi-arch images publish scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikiwanekhyland committed Nov 6, 2023
1 parent 968febf commit ad4498b
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/actions/publish-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

0 comments on commit ad4498b

Please sign in to comment.