Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit 84db4f9

Browse files
authored
Login to hub.docker.com to get user specific pull rate. (#131)
1 parent 03bca6b commit 84db4f9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/travis/build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ IMAGE_PREFIX="testing"
1010

1111
export OPENWHISK_HOME=$WHISKDIR
1212

13+
# Login to hub.docker.com to get user specific pull rate.
14+
if [ ! -z "${DOCKER_USER}" ] && [ ! -z "${DOCKER_PASSWORD}" ]; then
15+
echo "Run docker login..."
16+
echo ${DOCKER_PASSWORD} | docker login -u "${DOCKER_USER}" --password-stdin
17+
fi
18+
1319
# Build OpenWhisk
1420
cd $WHISKDIR
1521

0 commit comments

Comments
 (0)