From b229a2c20be310659fdc0334aeb063ce837078b2 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Wed, 6 Jan 2021 13:36:55 +0000 Subject: [PATCH 1/2] fix docker pull rate limit - fixes https://github.com/SyneRBI/SyneRBI-admin/issues/1 --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3a2f165e..a64742e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -183,6 +183,9 @@ jobs: # count unique clones, excluding travis, and print total gh_stats_count -k uniques fi + 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 @@ -237,7 +240,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 From ddf32ad39737d0452dd95af717d865b58da65498 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Wed, 6 Jan 2021 16:13:19 +0000 Subject: [PATCH 2/2] CI: docker: minor comment updates --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a64742e8..77292cc8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -174,8 +174,8 @@ 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 @@ -183,6 +183,7 @@ jobs: # 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