deploy: Adding logging
This commit is contained in:
parent
a234f312be
commit
00e9bd1134
@ -4,20 +4,26 @@
|
|||||||
# Prelude - make bash behave sanely
|
# Prelude - make bash behave sanely
|
||||||
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
|
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
|
||||||
#
|
#
|
||||||
set -x
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
INCLUDE=$(dirname $(readlink -f $0))
|
INCLUDE=$(dirname $(readlink -f $0))
|
||||||
. $INCLUDE/setup_tools
|
. $INCLUDE/setup_tools
|
||||||
|
|
||||||
|
echo ">> Logging into $_DOCKER_REGISTRY"
|
||||||
docker login -e="." -u="$_DOCKER_LOGIN_USERNAME" -p="$_DOCKER_LOGIN_PASSWORD" $_DOCKER_REGISTRY
|
docker login -e="." -u="$_DOCKER_LOGIN_USERNAME" -p="$_DOCKER_LOGIN_PASSWORD" $_DOCKER_REGISTRY
|
||||||
|
echo ">> Installing captain"
|
||||||
curl -sSL https://raw.githubusercontent.com/tomgco/captain/master/install.sh | bash
|
curl -sSL https://raw.githubusercontent.com/tomgco/captain/master/install.sh | bash
|
||||||
export PATH=$HOME/.captain/bin:$PATH
|
export PATH=$HOME/.captain/bin:$PATH
|
||||||
|
|
||||||
git stash -u
|
git stash -u
|
||||||
|
echo ">> running captain build"
|
||||||
captain build -N $_DOCKER_REGISTRY/yldio/joyent-dashboard-
|
captain build -N $_DOCKER_REGISTRY/yldio/joyent-dashboard-
|
||||||
|
echo ">> running captain push"
|
||||||
captain push -N $_DOCKER_REGISTRY/yldio/joyent-dashboard-
|
captain push -N $_DOCKER_REGISTRY/yldio/joyent-dashboard-
|
||||||
git stash apply
|
git stash apply
|
||||||
|
|
||||||
|
|
||||||
|
echo ">> running triton deploy with docker-compose"
|
||||||
ensure_command triton
|
ensure_command triton
|
||||||
ensure_triton_cns_is_enabled
|
ensure_triton_cns_is_enabled
|
||||||
get_triton_details
|
get_triton_details
|
||||||
|
Loading…
Reference in New Issue
Block a user