mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACA-4722] - add multi-arch images publish scripts (#3504)
This commit is contained in:
@@ -26,6 +26,12 @@ inputs:
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
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
|
- name: Login to Docker Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
@@ -38,15 +44,16 @@ runs:
|
|||||||
with:
|
with:
|
||||||
branch_name: ${{ inputs.branch_name }}
|
branch_name: ${{ inputs.branch_name }}
|
||||||
|
|
||||||
- name: Publish
|
- name: Install dependencies and build project
|
||||||
if: ${{ github.event.inputs.dry-run != 'true' }}
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
npm ci && npm run build.release
|
npm ci
|
||||||
echo "Running the docker with tag $TAG_VERSION"
|
npm run build.release
|
||||||
|
|
||||||
npx @alfresco/adf-cli docker-publish \
|
- name: Build and push multi-platform image
|
||||||
--dockerRepo "${{ inputs.registry }}/alfresco/alfresco-content-app" \
|
uses: docker/build-push-action@v5
|
||||||
--buildArgs "PROJECT_NAME=content-ce" \
|
with:
|
||||||
--dockerTags "$TAG_VERSION" \
|
context: .
|
||||||
--pathProject "$(pwd)"
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: ${{ github.event.inputs.dry-run != 'true' }}
|
||||||
|
tags: ${{ inputs.registry }}/alfresco/alfresco-content-app:${{ env.TAG_VERSION }}
|
||||||
|
|||||||
Reference in New Issue
Block a user