From ce7ce0090567e01c95a4e3518c836cec49495ff8 Mon Sep 17 00:00:00 2001 From: Andreas <andreksv@ntnu.no> Date: Thu, 2 May 2024 15:20:35 +0200 Subject: [PATCH] test/Testing that the pipeline works --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cfdf6f1..191ddf3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,5 +16,6 @@ deploy: - apt-get -yqq install ssh - apt-get install sshpass script: - - sshpass -p sParest1en ssh -v -o StrictHostKeyChecking=no root@128.199.53.153 "docker kill backend && docker rm backend && docker run -d --name backend registry.gitlab.com/henrikberg/sparesti-registry:backend" + - sshpass -p sParest1en ssh -v -o StrictHostKeyChecking=no root@128.199.53.153 "docker ps -q --filter 'name=^backend$' | grep -q . && docker kill backend && docker rm backend; docker run --name backend registry.gitlab.com/henrikberg/sparesti-registry:backend" + -- GitLab