diff --git a/.github/actions/build-test-and-deploy/build_multiplatform_docker/action.yml b/.github/actions/build-test-and-deploy/build_multiplatform_docker/action.yml index b71b5c1..4af1ea1 100644 --- a/.github/actions/build-test-and-deploy/build_multiplatform_docker/action.yml +++ b/.github/actions/build-test-and-deploy/build_multiplatform_docker/action.yml @@ -33,7 +33,14 @@ inputs: description: Docker registry token required: false type: string - + git_head_ref: + description: Github source branch ref + required: false + type: string + git_branch_ref: + description: Github branch name + required: false + type: string # secrets: # HMPPS_QUAYIO_USER: # required: false @@ -72,8 +79,8 @@ runs: provenance: false build-args: | "BUILD_NUMBER=${{ inputs.app_version }}" - "GIT_REF=${{ github.head_ref }}" - "GIT_BRANCH=${{ github.ref_name }}" + "GIT_REF=${{ inputs.git_head_ref }}" + "GIT_BRANCH=${{ inputs.git_branch_ref }}" tags: | ${{ inputs.docker_registry}}/${{ inputs.registry_org }}/${{ github.event.repository.name }}:latest ${{ inputs.docker_registry}}/${{ inputs.registry_org }}/${{ github.event.repository.name }}:${{ inputs.app_version }} diff --git a/.github/workflows/build_multiplatform_docker.yml b/.github/workflows/build_multiplatform_docker.yml index 124a2ec..276f104 100644 --- a/.github/workflows/build_multiplatform_docker.yml +++ b/.github/workflows/build_multiplatform_docker.yml @@ -68,6 +68,8 @@ jobs: app_version: ${{ needs.create_app_version.outputs.version }} HMPPS_QUAYIO_USER: ${{ secrets.HMPPS_QUAYIO_USER }} HMPPS_QUAYIO_TOKEN: ${{ secrets.HMPPS_QUAYIO_TOKEN}} + git_head_ref: ${{ github.head_ref }} + git_branch_ref: ${{ github.ref_name }}