Skip to content

Commit

Permalink
Merge pull request SyneRBI#466 from SyneRBI/docker-pull-rate
Browse files Browse the repository at this point in the history
fix docker pull rate limit
  • Loading branch information
KrisThielemans authored Jan 9, 2021
2 parents 6886a37 + ddf32ad commit 199921c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,19 @@ jobs:
apt:
packages:
before_install: &docker_before_install
# for counting clones, excluding ours
- |
# for counting clones, excluding ours
if [[ -n "$GITHUB_API_TOKEN" ]]; then
git clone https://$GITHUB_API_TOKEN@github.com/ccp-petmr-codebot/github-stats --branch $TRAVIS_REPO_SLUG
# update with last fortnight's clones from GitHub API
source github-stats/setup.sh
# count unique clones, excluding travis, and print total
gh_stats_count -k uniques
fi
# login required early to increase pull rate limits
if [[ "$TRAVIS_SECURE_ENV_VARS" == true ]]; then
echo "$DOCKER_PWD" | docker login -u $DOCKER_USR --password-stdin
fi
# custom runtime not supported on travis
- sed -i '/runtime/d' docker/docker-compose.srv-gpu.yml
install: &docker_install
Expand Down Expand Up @@ -237,7 +241,6 @@ jobs:
- |
# push images
if [[ "$TRAVIS_SECURE_ENV_VARS" == true ]]; then ( set -ev
echo "$DOCKER_PWD" | docker login -u $DOCKER_USR --password-stdin
dpush() {
# create and push alias $1 -> $2
if [[ "$1" != "$2" ]]; then
Expand Down

0 comments on commit 199921c

Please sign in to comment.