Skip to content

Commit

Permalink
[Travis] Added logging into Docker Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
mnocon committed Jun 22, 2021
1 parent 2ca4a30 commit 0e2be5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ before_install: ./bin/.travis/trusty/update_docker.sh
before_script:
# Internal auth token dedicated to testing with travis+composer on ezsystems repos, not for reuse!
- echo "{\"github-oauth\":{\"github.com\":\"d0285ed5c8644f30547572ead2ed897431c1fc09\"}}" > auth.json
# Login into Docker Hub to access Travis Docker images cache
- if [[ -n "${DOCKER_PASSWORD}" ]]; then echo ${DOCKER_PASSWORD} | docker login -u ${DOCKER_USERNAME} --password-stdin; fi
# In case of dev mode we'll need to install composer packages first
- docker-compose -f doc/docker/install.yml up --abort-on-container-exit
# Run (start containers and execute install command)
Expand Down
5 changes: 5 additions & 0 deletions bin/.travis/trusty/setup_from_external_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ if [ "$COMPOSE_FILE" = "" ] ; then
exit 1
fi

if [[ -n "${DOCKER_PASSWORD}" ]]; then
echo "> Set up Docker credentials"
echo ${DOCKER_PASSWORD} | docker login -u ${DOCKER_USERNAME} --password-stdin
fi

echo "> Move '$REPO_DIR' to 'tmp_travis_folder'"
mv $REPO_DIR tmp_travis_folder
ls -al tmp_travis_folder
Expand Down

0 comments on commit 0e2be5d

Please sign in to comment.