adding the fixes

This commit is contained in:
Lucas Gravley 2020-01-09 13:19:21 -06:00
parent c4d74841a7
commit 3876968345
2 changed files with 3 additions and 2 deletions

View file

@ -202,7 +202,7 @@ RemoveImage()
TOKEN=$(curl -s -k \
-H "Content-Type: application/json" \
-X POST \
-d '{"username": "'$DOCKER_USERNAME'", "password": "'$DOCKER_PASSWORD'"}' \
-d "{\"username\": \"$DOCKER_USERNAME\", \"password\": \"$DOCKER_PASSWORD\"}" \
"https://hub.docker.com/v2/users/login/" | jq -r .token 2>&1)
#######################
@ -245,7 +245,7 @@ RemoveImage()
exit 1
else
# SUCCESS
echo "Successfully [removed] Docker image tag from DockerHub!"
echo "Successfully [removed] Docker image tag:[$IMAGE_VERSION] from DockerHub!"
fi
}
################################################################################

View file

@ -128,6 +128,7 @@ ValidateInput()
# Set the IMAGE_VERSION to the BRANCH_NAME #
############################################
IMAGE_VERSION="$BRANCH_NAME"
echo "Tag:[$IMAGE_VERSION]"
else
echo "Successfully found:[IMAGE_VERSION], value:[$IMAGE_VERSION]"
fi