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

Commit 0f0dc8f

Browse files
authored
Login to hub.docker.com to get user specific pull rate. (#73)
1 parent 532b977 commit 0f0dc8f

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
@@ -11,6 +11,12 @@ export OPENWHISK_HOME=$WHISKDIR
1111

1212
IMAGE_PREFIX="testing"
1313

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

0 commit comments

Comments
 (0)