mirror of
https://github.com/ditkrg/build-image-workflow.git
synced 2026-01-23 02:26:43 +00:00
commit
ec4d5b9e24
14
action.yml
14
action.yml
@ -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,15 @@ 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: |
|
||||||
|
|
||||||
|
extracted_tag=$(echo "$json" | jq -r '.tags | .[0]')
|
||||||
|
echo "tag=$extracted_tag" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
env:
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
json: ${{ steps.meta.outputs.json }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user