We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2ae1358 + 8282681 commit ec4d5b9Copy full SHA for ec4d5b9
action.yml
@@ -28,7 +28,7 @@ inputs:
28
outputs:
29
tag:
30
description: "Image Tag"
31
- value: ${{ steps.meta.outputs.tags[0] }}
+ value: ${{ steps.set_tag.outputs.tag }}
32
tags:
33
description: "Image Tags"
34
value: ${{ steps.meta.outputs.tags }}
@@ -75,3 +75,15 @@ runs:
75
cache-from: type=registry,ref=${{ inputs.registry }}/${{ inputs.image }}:${{ github.ref_name }}-cache
76
build-args: ${{ inputs.build-args }}
77
secrets: ${{ inputs.build-secrets }}
78
+
79
+ - name: Set Tag
80
+ id: set_tag
81
+ shell: bash
82
+ run: |
83
84
+ extracted_tag=$(echo "$json" | jq -r '.tags | .[0]')
85
+ echo "tag=$extracted_tag" >> $GITHUB_OUTPUT
86
87
+ env:
88
+ tags: ${{ steps.meta.outputs.tags }}
89
+ json: ${{ steps.meta.outputs.json }}
0 commit comments