Pull updated image when deploying

This commit is contained in:
ebracho 2017-09-25 11:09:26 -07:00
parent 2b879e9179
commit 824cedb61b
2 changed files with 2 additions and 1 deletions

View file

@ -49,6 +49,7 @@ remote_exec() {
deploy() { deploy() {
echo "Deploying ${IMAGE}:${TAG} to ${FQDN}" echo "Deploying ${IMAGE}:${TAG} to ${FQDN}"
remote_exec "docker rm -f petclinic || true" remote_exec "docker rm -f petclinic || true"
remote_exec "docker pull ${IMAGE}:${TAG}"
remote_exec "docker run -d -p 80:8080 --name petclinic ${IMAGE}:${TAG}" remote_exec "docker run -d -p 80:8080 --name petclinic ${IMAGE}:${TAG}"
} }

View file

@ -12,7 +12,7 @@ input[type="text"] {
} }
.navbar .nav > li > a { .navbar .nav > li > a {
color: #FF0000 color: #000000
} }
.form-horizontal .control-label { .form-horizontal .control-label {