This commit is contained in:
Karl Cordes 2020-07-14 16:19:21 +10:00
parent c70503f91d
commit b63cd779d5
4 changed files with 6 additions and 5 deletions

View file

@ -13,7 +13,7 @@ deploy_staging:
- cd /home/cmc/staging/
- git pull origin master
- echo "Run the new docker image"
- /home/cmc/cmc-sales/run_docker_stg.sh
- /home/cmc/staging/run_docker_stg.sh
environment:
name: staging
only:

View file

@ -1,7 +1,8 @@
ID=$(docker ps -q)
ID=$(docker ps -qf ancestor='cmc:latest')
docker kill $ID
sleep 1
docker run -d -p 127.0.0.1:8888:80 \
--mount type=bind,source=/home/k/projects/cmc-sales/app/webroot/pdf,target=/var/www/cmc-sales/app/webroot/pdf \
--mount type=bind,source=/home/k/projects/cmc-sales/app/webroot/attachments_files,target=/var/www/cmc-sales/app/webroot/attachments_files \
cmc:stg
cmc:latest

View file

@ -1,4 +1,4 @@
ID=$(docker ps -q)
ID=$(docker ps -qf ancestor='cmc:latest')
docker kill $ID
sleep 1
docker run -d -p 127.0.0.1:8888:80 \

View file

@ -1,4 +1,4 @@
ID=$(docker ps -q)
ID=$(docker ps -qf ancestor='cmc:stg')
docker kill $ID
sleep 1
docker run -d -p 127.0.0.1:9999:80 \