Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
rpteam
Revue de Press
Commits
8dcdfdbb
Commit
8dcdfdbb
authored
May 18, 2017
by
okhin
Browse files
Added a deploy job for preprod
parent
d45a01d7
Pipeline
#1040
failed with stages
in 2 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
8dcdfdbb
...
@@ -48,3 +48,20 @@ static build:
...
@@ -48,3 +48,20 @@ static build:
paths
:
paths
:
-
static/
-
static/
expire_in
:
1 day
expire_in
:
1 day
deploy preprod
:
variables
:
BASE_PATH
:
/srv/rp2/src/
VIRTUALENV
:
/srv/rp2/rp2-env
stage
:
deploy
script
:
-
rsync -ruvC ./ ${BASE_PATH}
-
source ${VIRTUALENV}/bin/activate
-
pip install --upgrade pip
-
pip install --upgrade requirements.txt
-
pip install --upgarde requirements-dev.txt
-
echo "DEBUG = True" > ${BASE_PATH}/project/settings/env.py
-
echo "SECRET_KEY = '$(pwgen 20 1)'" >> ../project/settings/env.py
-
$[BASE_PATH}/manage.py migrate
-
touch ${BASE_PATH}/ready
tags
:
[
preprod
]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment