File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -104,17 +104,17 @@ jobs:
104
104
105
105
- name : Docker tags
106
106
run : |
107
- if [ -z "$DOCKER_METADATA_OUTPUT_VERSION" ]; then
108
- echo DOCKER_METADATA_OUTPUT_VERSION=${{ github.ref_name }} >> $GITHUB_ENV
109
- fi
110
- if [ -z "$DOCKER_METADATA_OUTPUT_JSON" ]; then
111
- echo DOCKER_METADATA_OUTPUT_JSON='{"tags":["${{ github.ref_name }}"]}' >> $GITHUB_ENV
107
+ tags=$(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON")
108
+ if [ -z "$tags" ]; then
109
+ echo "DOCKER_METADATA_OUTPUT_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
110
+ tags="-t ${{ github.ref_name }}"
112
111
fi
112
+ echo "DOCKER_METADATA_TAGS=$tags" >> $GITHUB_ENV
113
113
114
114
- name : Create manifest list and push
115
115
working-directory : ${{ runner.temp }}/digests
116
116
run : |
117
- docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
117
+ docker buildx imagetools create ${{ env.DOCKER_METADATA_TAGS }} \
118
118
$(printf '${{ env.GITHUB_CR_REPO }}@sha256:%s ' *)
119
119
120
120
- name : Inspect image
You can’t perform that action at this time.
0 commit comments