From cb5b0caa6da69a4c0176d56c421dc82ffd716cb6 Mon Sep 17 00:00:00 2001 From: Matthew McKinnon Date: Sun, 31 Dec 2023 20:20:28 +1000 Subject: [PATCH] Added CI Deployment --- .gitlab-ci.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0d113c9..f8a7578 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,15 +50,15 @@ docker_deploy: - ssh administrator@docker.comprofix.xyz "docker rm comprofix" || true - ssh administrator@docker.comprofix.xyz "docker rmi registry.gitlab.comprofix.com/comprofix/website:latest" || true # start new container - - ssh administrator@docker.comprofix.xyz "docker run -d \ - --name=comprofix \ - --network=traefik \ - --restart unless-stopped \ + - ssh administrator@docker.comprofix.xyz "docker run -d + --name=comprofix + --network=traefik + --restart unless-stopped --label traefik.enable=true - --label traefik.http.routers.comprofix.rule=Host(`comprofix.com`) \ - --label traefik.http.routers.comprofix.rule=Host(`www.comprofix.com`) \ - --label traefik.http.routers.comprofix.entrypoints=https \ - --label traefik.http.routers.comprofix.tls.certresolver=cloudflare \ + --label traefik.http.routers.comprofix.rule=Host('comprofix.com') + --label traefik.http.routers.comprofix.rule=Host('www.comprofix.com') + --label traefik.http.routers.comprofix.entrypoints=https + --label traefik.http.routers.comprofix.tls.certresolver=cloudflare registry.gitlab.comprofix.com/comprofix/website:latest" only: - master