Skip to content
Snippets Groups Projects
Commit 246c7706 authored by iaibrys's avatar iaibrys
Browse files

Add production deploy to CI

parent 741e232a
Branches
No related tags found
No related merge requests found
Pipeline #215 passed
......@@ -72,3 +72,24 @@ deploy_devel:
url: https://enote-devel3.compute.dtu.dk
only:
- develop
deploy_production:
tags:
- deploy-prod-2019
stage: deploy
script:
- echo "Deploy to ${CI_BUILD_REF_SLUG} server"
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- cd /enote/src/dtu-enote
- ../../gen/docker-stop.sh
- docker-compose -f ../../gen/docker-compose-enote.yml pull
- docker images | grep ${CI_PROJECT_PATH}
- ../../gen/docker-start.sh
- docker ps -q -f status=exited | xargs -I '{}' docker rm -f '{}'
- docker ps -q -f status=dead | xargs -I '{}' docker rm -f '{}'
- docker image prune -f
environment:
name: production
url: https://quiz.compute.dtu.dk
only:
- release-2019.0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment