mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACA-4722] - fix publish image script (#3511)
This commit is contained in:
@@ -16,6 +16,6 @@ runs:
|
||||
if [[ "${{ inputs.branch_name }}" == "master" ]]; then
|
||||
TAG_VERSION="$(jq -cr '.version' < package.json)"
|
||||
else
|
||||
TAG_VERSION="${{ inputs.branch_name }}-${{ github.run_id }},${{ inputs.branch_name }}"
|
||||
TAG_VERSION="${{ inputs.branch_name }}-${{ github.run_id }}"
|
||||
fi
|
||||
echo "TAG_VERSION=$TAG_VERSION" >> $GITHUB_ENV
|
||||
|
||||
@@ -5,23 +5,18 @@ inputs:
|
||||
registry:
|
||||
description: 'Docker registry'
|
||||
required: true
|
||||
type: string
|
||||
username:
|
||||
description: 'login username'
|
||||
required: true
|
||||
type: string
|
||||
password:
|
||||
description: 'login password'
|
||||
required: true
|
||||
type: string
|
||||
branch_name:
|
||||
description: 'Name of the branch the workflow runs on'
|
||||
required: true
|
||||
type: string
|
||||
dry-run:
|
||||
description: dry run flag
|
||||
description: 'dry run flag'
|
||||
required: true
|
||||
tag_version:
|
||||
description: 'tag version'
|
||||
required: true
|
||||
type: boolean
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
@@ -39,11 +34,6 @@ runs:
|
||||
username: ${{ inputs.username }}
|
||||
password: ${{ inputs.password }}
|
||||
|
||||
- name: Get Tag
|
||||
uses: ./.github/actions/get-image-tag
|
||||
with:
|
||||
branch_name: ${{ inputs.branch_name }}
|
||||
|
||||
- name: Install dependencies and build project
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -55,5 +45,5 @@ runs:
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: ${{ github.event.inputs.dry-run != 'true' }}
|
||||
tags: ${{ inputs.registry }}/alfresco/alfresco-content-app:${{ env.TAG_VERSION }}
|
||||
push: ${{ inputs.dry-run != 'true' }}
|
||||
tags: ${{ inputs.registry }}/alfresco/alfresco-content-app:${{ inputs.tag_version }}
|
||||
|
||||
Reference in New Issue
Block a user