diff --git a/.travis.yml b/.travis.yml index b3a4b5d..cbdd3c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/ci/publish-image.sh b/ci/publish-image.sh index 13f44ca..280e153 100755 --- a/ci/publish-image.sh +++ b/ci/publish-image.sh @@ -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