Files
alfresco-content-app/.github/actions/publish-image/action.yml
dependabot[bot] 68f88c4cee Build(deps): Bump the github-actions group (#4154)
Bumps the github-actions group in /.github/actions/publish-image with 2 updates: [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).


Updates `docker/login-action` from 2 to 3
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v2...v3)

Updates `docker/build-push-action` from 5 to 6
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-18 10:02:37 +02:00

50 lines
1.2 KiB
YAML

name: "Publish Docker Images"
description: "Publish Docker Image to the provided registry"
inputs:
registry:
description: 'Docker registry'
required: true
username:
description: 'login username'
required: true
password:
description: 'login password'
required: true
dry-run:
description: 'dry run flag'
required: true
tag_version:
description: 'tag version'
required: true
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@v3
with:
registry: ${{ inputs.registry }}
username: ${{ inputs.username }}
password: ${{ inputs.password }}
- name: Install dependencies and build project
shell: bash
run: |
npm ci
npm run build.release
- name: Build and push multi-platform image
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ inputs.dry-run != 'true' }}
tags: ${{ inputs.registry }}/alfresco/alfresco-content-app:${{ inputs.tag_version }}