File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,15 @@ jobs:
102
102
type=semver,pattern={{version}}
103
103
type=semver,pattern={{major}}
104
104
105
+ - name : Docker tags
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
112
+ fi
113
+
105
114
- name : Create manifest list and push
106
115
working-directory : ${{ runner.temp }}/digests
107
116
run : |
@@ -110,4 +119,4 @@ jobs:
110
119
111
120
- name : Inspect image
112
121
run : |
113
- docker buildx imagetools inspect ${{ env.GITHUB_CR_REPO }}:${{ steps.meta.outputs.version }}
122
+ docker buildx imagetools inspect ${{ env.GITHUB_CR_REPO }}:${{ env.DOCKER_METADATA_OUTPUT_VERSION }}
You can’t perform that action at this time.
0 commit comments