ci: add a deployment script

This commit is contained in:
Tom Gallacher 2016-10-20 14:55:05 +01:00
parent 3f1459825c
commit 9140f2a52b
4 changed files with 15 additions and 5 deletions

View File

@ -1,6 +1,6 @@
.PHONY: check
check:
@./bin/setup.sh
@./bin/setup
.PHONY: test-cloudapi-graphql
test-cloudapi-graphql:

12
bin/deploy Executable file
View File

@ -0,0 +1,12 @@
#! /usr/bin/env bash
triton env
docker-compose build
#docker-compose push
export DOCKER_HOST=$_DOCKER_HOST
export DOCKER_CERT_PATH=$_DOCKER_CERT_PATH
export DOCKER_TLS_VERIFY=$_DOCKER_TLS_VERIFY
docker-compose pull
docker-compose up -d

View File

@ -25,10 +25,8 @@ deployment:
production: # just a label; label names are completely up to you
branch: master
commands:
- ./bin/setup.sh
- docker-compose pull
- docker-compose build
- docker-compose up -d
- ./bin/setup
- ./bin/deploy
## Custom notifications
# notify: