File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 88
99deploy :
1010 - provider : script
11- script : tools/cd.sh
11+ script : tools/cd.sh travis-${TRAVIS_BUILD_NUMBER}
12+ on :
13+ branch : master
14+
15+ - provider : script
16+ script : tools/cd.sh release-${TRAVIS_TAG}
1217 on :
13- repo : chakki-works/doccano
1418 tags : true
Original file line number Diff line number Diff line change 22
33if [[ -z " ${DOCKER_USERNAME} " ]]; then echo " Missing DOCKER_USERNAME environment variable" >&2 ; exit 1; fi
44if [[ -z " ${DOCKER_PASSWORD} " ]]; then echo " Missing DOCKER_PASSWORD environment variable" >&2 ; exit 1; fi
5- if [[ -z " ${TRAVIS_TAG} " ]]; then echo " Missing TRAVIS_TAG environment variable " >&2 ; exit 1; fi
5+ if [[ -z " $1 " ]]; then echo " Usage: $0 <tag> " >&2 ; exit 1; fi
66
77set -o errexit
88
99docker build -t " ${DOCKER_USERNAME} /doccano:latest" .
10- docker build -t " ${DOCKER_USERNAME} /doccano:${TRAVIS_TAG} " .
10+ docker build -t " ${DOCKER_USERNAME} /doccano:$1 " .
1111
1212echo " ${DOCKER_PASSWORD} " | docker login --username " ${DOCKER_USERNAME} " --password-stdin
1313
1414docker push " ${DOCKER_USERNAME} /doccano:latest"
15- docker push " ${DOCKER_USERNAME} /doccano:${TRAVIS_TAG} "
15+ docker push " ${DOCKER_USERNAME} /doccano:$1 "
You can’t perform that action at this time.
0 commit comments