Fixed encrypted docker creds.

This commit is contained in:
Shuai Lin 2016-12-21 16:54:38 +08:00
parent 129ff13955
commit e0d4231838
2 changed files with 4 additions and 7 deletions

View file

@ -1,12 +1,6 @@
sudo: required
language: python
env:
global:
- secure: cOQ0S8mSipRPkbzhFFZFiP5kpAQY/6C2LLU2vx0DNpjlVEDEI1IKRoL4Em4m+Q0+XEypprMuEtwtTVoyBxCsRmmR1B7WbZCwJAvRTyFHL7R9CRe1VaHLXkdOrvh2QN4RtGaVsQEF4GWY3y7r8PzXE4WWkvFhdWCAP1qn5IHEpHc=
- secure: NyEO+wZcFT9p5gMFucKU5wL8oCd9ISVAudMJ1SzKctg+ysEValj0BonTIsC0H8Wrg90DyWm0hEXHNnKfufco9RnlZo5MAAtVTP+jWsR0LH0rf2B+IFAkOcBxZSJ4lJVamSUu0Tbq7eHO1FHhHvtv0gFEZFdtgWGI7DKhBIiX25Y=
- secure: a7Rzwf67nNJIPZGSPlOlQ8gsLBsnE1A0WFZ0tQZMt/4eoKTztsMu5uMZ8nokbF1BFCcQQH00MVRn77aE25ptkUk1M5oiGZYjAL1Bn6L1wspvhPYqNybAP6zZGhqYcA4VapBCW8vCKeOeRyipUpzYbxEzmE+meoqCGEVM2prYd1w=
services:
- docker

View file

@ -5,8 +5,11 @@
# registry. This script should only be called during a travis build trigger by a tag.
######################################
# Nerver use "set -x" or it would expose the docker credentials in the travis logs!
set -e
set -o pipefail
set -e -x
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
## Always use the base image we build manually to reduce the download size of the end user.
docker pull seafileorg/base:16.04