Added CI Deployment

This commit is contained in:
Matthew McKinnon 2023-12-31 20:20:28 +10:00
parent eb7711252a
commit cb5b0caa6d

View File

@ -50,15 +50,15 @@ docker_deploy:
- ssh administrator@docker.comprofix.xyz "docker rm comprofix" || true - ssh administrator@docker.comprofix.xyz "docker rm comprofix" || true
- ssh administrator@docker.comprofix.xyz "docker rmi registry.gitlab.comprofix.com/comprofix/website:latest" || true - ssh administrator@docker.comprofix.xyz "docker rmi registry.gitlab.comprofix.com/comprofix/website:latest" || true
# start new container # start new container
- ssh administrator@docker.comprofix.xyz "docker run -d \ - ssh administrator@docker.comprofix.xyz "docker run -d
--name=comprofix \ --name=comprofix
--network=traefik \ --network=traefik
--restart unless-stopped \ --restart unless-stopped
--label traefik.enable=true --label traefik.enable=true
--label traefik.http.routers.comprofix.rule=Host(`comprofix.com`) \ --label traefik.http.routers.comprofix.rule=Host('comprofix.com')
--label traefik.http.routers.comprofix.rule=Host(`www.comprofix.com`) \ --label traefik.http.routers.comprofix.rule=Host('www.comprofix.com')
--label traefik.http.routers.comprofix.entrypoints=https \ --label traefik.http.routers.comprofix.entrypoints=https
--label traefik.http.routers.comprofix.tls.certresolver=cloudflare \ --label traefik.http.routers.comprofix.tls.certresolver=cloudflare
registry.gitlab.comprofix.com/comprofix/website:latest" registry.gitlab.comprofix.com/comprofix/website:latest"
only: only:
- master - master