File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
.github/actions/check-docker-tag Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,13 @@ runs:
1313 - name : " Check for existing tag (${{ inputs.image_name }}:${{ inputs.tag }})"
1414 shell : bash
1515 run : |
16- tag="${{ inputs.image_name }}:${{ inputs.tag }}"
17- if [ -z "$tag" ]; then
18- echo "Error: tag is not set."
16+ image="${{ inputs.image_name }}"
17+ tag_input="${{ inputs.tag }}"
18+ if [ -z "$image" ] || [ -z "$tag_input" ]; then
19+ echo "Error: image_name and tag are required."
1920 exit 1
2021 fi
22+ tag="${image}:${tag_input}"
2123 echo "Checking if tag '$tag' exists on DockerHub..."
2224 if DOCKER_CLI_EXPERIMENTAL=enabled docker manifest inspect "$tag" > /dev/null 2>&1; then
2325 echo "The tag '$tag' already exists on DockerHub. Skipping publish to prevent overwrite."
You can’t perform that action at this time.
0 commit comments