Commit 133ddd73 authored by Imran Hussain's avatar Imran Hussain

Launch docker container in the background so the ci job isn't held up.

parent fb71c0e3
Pipeline #672 passed with stages
in 1 minute and 7 seconds
......@@ -44,4 +44,6 @@ Deploy Tag:
- 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 docker rmi --force $CI_REGISTRY_IMAGE 2>/dev/null || true"
- ssh root@192.168.10.59 "docker run --name marvin -v /opt/marvin/.env:/opt/nodeapp/.env $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME"
- 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:
name: production
\ No newline at end of file
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