Commit 325f6e75 authored by Imran Hussain's avatar Imran Hussain

Close #13: Don't forget to rm the old container...

parent 55619d7d
Pipeline #676 passed with stages
in 1 minute and 7 seconds
......@@ -43,6 +43,7 @@ Deploy Tag:
- chmod 600 ~/.ssh/id_ed25519
- ssh-keyscan -H >> ~/.ssh/known_hosts
- ssh root@ "docker stop marvin || true"
- ssh root@ "docker rm marvin || true"
- ssh root@ "docker docker rmi --force $CI_REGISTRY_IMAGE 2>/dev/null || true"
- ssh root@ "docker run -d --name marvin -v /opt/marvin/.env:/opt/nodeapp/.env $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment