Skip to content
This repository was archived by the owner on Dec 9, 2022. It is now read-only.

Commit 8bcee4a

Browse files
authored
Merge pull request #9 from machine-learning-apps/hamelsmu-patch-1
Update entrypoint.sh
2 parents 2efef05 + 9413d87 commit 8bcee4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

entrypoint.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ fi
3232

3333
# send credentials through stdin (it is more secure)
3434
user=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/user | jq -r .login)
35-
echo ${GITHUB_TOKEN} | docker login docker.pkg.github.com -u "${user}" --password-stdin
35+
# lowercase the username
36+
username="$(echo ${user} | tr "[:upper:]" "[:lower:]")"
37+
echo ${GITHUB_TOKEN} | docker login docker.pkg.github.com -u "${username}" --password-stdin
3638

3739
# Set Local Variables
3840
shortSHA=$(echo "${GITHUB_SHA}" | cut -c1-12)

0 commit comments

Comments
 (0)