Files
OSIT-Mailman3/.travis/deploy.sh
2017-11-05 19:39:24 -08:00

18 lines
407 B
Bash

#! /bin/bash
deploy() {
REG_URL=${REGISTRY}_URL
REG_USER=${REGISTRY}_USER
REG_PASS=${REGISTRY}_PASS
docker login -u ${!REG_USER} -p ${!REG_PASS} ${!REG_URL}
docker push ${!REG_URL}/maxking/mailman-web:$TAG
docker push ${!REG_URL}/maxking/mailman-core:$TAG
}
if [ ! "$BRANCH" = "master" ] && [ "$PULL_REQUEST" ]; then
echo "Deploy only from master branch. This is $TRAVIS_BRANCH"
exit 0
fi
deploy