Added CI Deployment

This commit is contained in:
Matthew McKinnon 2023-12-31 21:20:48 +10:00
parent 8d017145b9
commit 5245e8a92f

View File

@ -48,7 +48,7 @@ docker_deploy:
# stop container, remove image. # stop container, remove image.
- ssh administrator@docker.comprofix.xyz "cd /opt/comprofix; docker-compose down" || true - ssh administrator@docker.comprofix.xyz "cd /opt/comprofix; docker-compose down" || true
# start new container # start new container
- ssh administrator@docker.comprofix.xyz "scp docker-compose.yml adinistrator@docker.comprofix.xyz:/opt/comprofix" - scp docker-compose.yml adinistrator@docker.comprofix.xyz:/opt/comprofix
- ssh administrator@docker.comprofix.xyz "cd /opt/comprofix; docker-compose pull; docker-compose up -d" - ssh administrator@docker.comprofix.xyz "cd /opt/comprofix; docker-compose pull; docker-compose up -d"
only: only:
- master - master