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 192.168.10.59 >> ~/.ssh/known_hosts
- ssh root@192.168.10.59 "docker stop marvin || true"
- ssh root@192.168.10.59 "docker rm marvin || true"
- ssh root@192.168.10.59 "docker docker rmi --force $CI_REGISTRY_IMAGE 2>/dev/null || true"
- ssh root@192.168.10.59 "docker run -d --name marvin -v /opt/marvin/.env:/opt/nodeapp/.env $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME"
environment:
......
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