Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dtu-enote-website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
enote
dtu-enote-website
Commits
25a15df7
Commit
25a15df7
authored
5 years ago
by
Iain J. Bryson
Browse files
Options
Downloads
Patches
Plain Diff
Add new deployment for devel2019
parent
561a1567
No related branches found
No related tags found
No related merge requests found
Pipeline
#418
passed
5 years ago
Stage: build
Stage: test
Stage: release
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-24
5 additions, 24 deletions
.gitlab-ci.yml
with
5 additions
and
24 deletions
.gitlab-ci.yml
+
5
−
24
View file @
25a15df7
...
@@ -52,24 +52,13 @@ release-image:
...
@@ -52,24 +52,13 @@ release-image:
deploy_devel
:
deploy_devel
:
tags
:
tags
:
-
deploy-devel
-
deploy-devel
-2019
stage
:
deploy
stage
:
deploy
script
:
script
:
-
echo "Deploy to development server"
-
/enote/src/dtu-enote/scripts/redeploy.sh ${CI_BUILD_REF_SLUG} ${CI_JOB_TOKEN} ${CI_REGISTRY} ${CI_PROJECT_PATH}
-
cd /enote/src/dtu-enote
-
echo docker stop course_website
-
../../gen/docker-stop.sh
-
docker-compose -f ../../gen/docker-compose-enote.yml pull
-
../../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 '{}'
-
echo docker pull $CONTAINER_RELEASE_IMAGE
-
docker images | grep ${CI_PROJECT_PATH}
-
echo bundle exec rake deploy:redeploy[dtu-enote-website]
-
docker image prune -f
environment
:
environment
:
name
:
develop
name
:
develop
url
:
https://enote-devel
3
.compute.dtu.dk
url
:
https://enote-devel
-2019
.compute.dtu.dk
only
:
only
:
-
develop
-
develop
...
@@ -78,18 +67,10 @@ deploy_production:
...
@@ -78,18 +67,10 @@ deploy_production:
-
deploy-prod-2019
-
deploy-prod-2019
stage
:
deploy
stage
:
deploy
script
:
script
:
-
echo "Deploy to ${CI_BUILD_REF_SLUG} server"
-
/enote/src/dtu-enote/scripts/redeploy.sh ${CI_BUILD_REF_SLUG} ${CI_JOB_TOKEN} ${CI_REGISTRY} ${CI_PROJECT_PATH}
-
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
:
environment
:
name
:
production
name
:
production
url
:
https://quiz.compute.dtu.dk
url
:
https://quiz.compute.dtu.dk
only
:
only
:
-
release-2019.0
-
release-2019.0
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment