@@ -123,7 +123,6 @@ runs:
123123 fi
124124
125125 echo "build=$BUILD" >> $GITHUB_OUTPUT
126- echo "image_name=${{ inputs.docker-registry }}/${{ inputs.docker-image }}" >> $GITHUB_OUTPUT
127126 echo "latest=$LATEST" >> $GITHUB_OUTPUT
128127 echo "push=$PUSH" >> $GITHUB_OUTPUT
129128 echo "tag=$TAG" >> $GITHUB_OUTPUT
@@ -160,7 +159,7 @@ runs:
160159 cache-to : type=gha,mode=max
161160 provenance : ${{ inputs.docker-build-provenance }}
162161
163- - name : Retag existing image
162+ - name : Retag Existing Image
164163 id : docker_retag
165164 if : steps.preparation.outputs.build == 'false'
166165 shell : bash
@@ -174,24 +173,24 @@ runs:
174173
175174 echo "CHECK_EXISTING_TAGS: ${CHECK_EXISTING_TAGS}"
176175 echo "RELEASE_TAG: ${RELEASE_TAG:1}"
177- echo "Check if an image already exists for ${{steps.preparation.outputs.image_name }}:main|master-${GITHUB_SHA::8} π β¬"
176+ echo "Check if an image already exists for ${{ inputs.docker-image }}:main|master-${GITHUB_SHA::8} π β¬"
178177
179178 MANIFEST=""
180179 for tag in $CHECK_EXISTING_TAGS; do
181180 MANIFEST=$(curl -H "Accept: ${CONTENT_TYPE}" -u "${{ inputs.docker-username }}:${{ inputs.docker-password }}" "${{ inputs.docker-registry-api }}${REPO}/v2/{$IMAGE}/manifests/${tag}")
182181
183182 if [[ $MANIFEST == *"errors"* ]]; then
184- echo "No image found for ${{ steps.preparation.outputs.image_name }}:${tag} π«"
183+ echo "No image found for ${{ inputs.docker-image }}:${tag} π«"
185184 continue
186185 else
187- echo "Image found for ${{ steps.preparation.outputs.image_name }}:${tag} π β¬"
186+ echo "Image found for ${{ inputs.docker-image }}:${tag} π β¬"
188187 break
189188 fi
190189 # Exit here if no existing manifest was found
191190 exit 1
192191 done
193192
194- echo "Retagging image with release version and :latest tags for ${{ steps.preparation.outputs.image_name }} π·"
193+ echo "Retagging image with release version and :latest tags for ${{ inputs.docker-image }} π·"
195194 curl --fail-with-body -X PUT -H "Content-Type: ${CONTENT_TYPE}" -u "${{ inputs.docker-username }}:${{ inputs.docker-password }}" -d "${MANIFEST}" "${{ inputs.docker-registry-api }}${REPO}/v2/{$IMAGE}/manifests/${{ steps.preparation.outputs.tag }}"
196195 curl --fail-with-body -X PUT -H "Content-Type: ${CONTENT_TYPE}" -u "${{ inputs.docker-username }}:${{ inputs.docker-password }}" -d "${MANIFEST}" "${{ inputs.docker-registry-api }}${REPO}/v2/{$IMAGE}/manifests/${{ steps.preparation.outputs.latest }}"
197196
0 commit comments