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

Add 2019 gitlab clause

parent 6992a256
No related branches found
No related tags found
No related merge requests found
Pipeline #219 passed
......@@ -58,3 +58,26 @@ 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