cmc-sales/.gitlab-ci.yml
2019-04-25 13:37:36 +10:00

22 lines
335 B
YAML

stages:
- build
- deploy
build:
stage: build
script:
- docker build . -t "cmc:latest"
deploy_staging:
stage: deploy
script:
- cd /home/cmc/cmc-sales
- git pull origin master
- echo "Run the new docker image"
- /home/cmc/cmc-sales/run_docker.sh
environment:
name: staging
only:
- master