mirror of
https://github.com/ditkrg/build-image-workflow.git
synced 2026-01-22 20:36:46 +00:00
commit
ec4d5b9e24
14
action.yml
14
action.yml
@ -28,7 +28,7 @@ inputs:
|
||||
outputs:
|
||||
tag:
|
||||
description: "Image Tag"
|
||||
value: ${{ steps.meta.outputs.tags[0] }}
|
||||
value: ${{ steps.set_tag.outputs.tag }}
|
||||
tags:
|
||||
description: "Image Tags"
|
||||
value: ${{ steps.meta.outputs.tags }}
|
||||
@ -75,3 +75,15 @@ runs:
|
||||
cache-from: type=registry,ref=${{ inputs.registry }}/${{ inputs.image }}:${{ github.ref_name }}-cache
|
||||
build-args: ${{ inputs.build-args }}
|
||||
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