Update action.yml to use the 'set_tag' output

Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
This commit is contained in:
Shakar Bakr 2024-03-06 10:55:24 +03:00
parent 2ae135865b
commit 41b517b4ef
No known key found for this signature in database
GPG Key ID: DA55A26823AE3C28

View File

@ -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