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