From 704c6b40c4bf05c4346216420adeb0a036cc9511 Mon Sep 17 00:00:00 2001 From: Peter Evans Date: Thu, 22 Aug 2019 10:51:29 +0900 Subject: [PATCH] Don't include username in repository path --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index cfa4261..1a0dcdd 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,7 +12,7 @@ TOKEN=$(curl -s -H "Content-Type: application/json" -X POST -d ${LOGIN_PAYLOAD} # Send a PATCH request to update the description of the repository echo "Sending PATCH request" -REPO_URL="https://hub.docker.com/v2/repositories/${DOCKERHUB_USERNAME}/${DOCKERHUB_REPOSITORY}/" +REPO_URL="https://hub.docker.com/v2/repositories/${DOCKERHUB_REPOSITORY}/" RESPONSE_CODE=$(curl -s --write-out %{response_code} --output /dev/null -H "Authorization: JWT ${TOKEN}" -X PATCH --data-urlencode full_description@${README_FILEPATH} ${REPO_URL}) echo "Received response code: $RESPONSE_CODE"