output image ref

This commit is contained in:
Ondrej Vlach 2025-01-25 15:26:53 +01:00
parent e5e852cdd1
commit 9189325b9e
No known key found for this signature in database
GPG Key ID: 7F141CDACEDEE2DE

View File

@ -30,6 +30,9 @@ outputs:
image_version:
description: "Image version"
value: ${{ steps.git.outputs.short_hash }}
image_ref:
description: "Image ref"
value: ${{ steps.image.outputs.version }}
runs:
using: "composite"
steps:
@ -46,7 +49,7 @@ runs:
shell: sh
- name: Store image version
id: image
run: echo "::set-output name=version::${{ inputs.image_name }}:${{inputs.docker_version_prefix}}-${{ steps.git.outputs.short_hash }}"
run: echo "::set-output name=version::'${{ inputs.image_name }}:${{inputs.docker_version_prefix}}-${{ steps.git.outputs.short_hash }}'"
shell: sh
- name: Build additional args (version etc.)
id: additional_args