mirror of
https://github.com/ditkrg/build-image-workflow.git
synced 2026-01-22 21:27:05 +00:00
Update action.yml to use the 'set_tag' output
Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
This commit is contained in:
parent
2ae135865b
commit
41b517b4ef
@ -28,7 +28,7 @@ inputs:
|
|||||||
outputs:
|
outputs:
|
||||||
tag:
|
tag:
|
||||||
description: "Image Tag"
|
description: "Image Tag"
|
||||||
value: ${{ steps.meta.outputs.tags[0] }}
|
value: ${{ steps.set_tag.outputs.tag }}
|
||||||
tags:
|
tags:
|
||||||
description: "Image Tags"
|
description: "Image Tags"
|
||||||
value: ${{ steps.meta.outputs.tags }}
|
value: ${{ steps.meta.outputs.tags }}
|
||||||
@ -75,3 +75,8 @@ runs:
|
|||||||
cache-from: type=registry,ref=${{ inputs.registry }}/${{ inputs.image }}:${{ github.ref_name }}-cache
|
cache-from: type=registry,ref=${{ inputs.registry }}/${{ inputs.image }}:${{ github.ref_name }}-cache
|
||||||
build-args: ${{ inputs.build-args }}
|
build-args: ${{ inputs.build-args }}
|
||||||
secrets: ${{ inputs.build-secrets }}
|
secrets: ${{ inputs.build-secrets }}
|
||||||
|
|
||||||
|
- name: Set Tag
|
||||||
|
id: set_tag
|
||||||
|
shell: bash
|
||||||
|
run: echo "tag=${{ steps.meta.outputs.tags[0] }}" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user