Skip to content
GitLab
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
piphone
piphone-sip
Commits
67205f2d
Commit
67205f2d
authored
Apr 19, 2017
by
okhin
Browse files
Adding a manual job to deploy in production
parent
622f951c
Pipeline
#925
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
67205f2d
before_script
:
job install
:
variables
:
BASE_PATH
:
/srv/piphone/sip-backend/
VIRTUALENV
:
/srv/piphone/backend/.sip-backend_env
script
:
-
rsync -ruvC ./ ${BASE_PATH}
-
source ${VIRTUALENV}/bin/activate
-
pip install --upgrade pip
-
pip install --upgrade -r requirements.txt
stage
:
deploy
tags
:
[
preprod
]
only
:
-
master
job production
:
variables
:
BASE_PATH
:
/srv/piphone/backend/
VIRTUALENV
:
/srv/piphone/backend/backend_env
...
...
@@ -10,6 +24,7 @@ job install:
-
pip install --upgrade pip
-
pip install --upgrade -r requirements.txt
stage
:
deploy
tags
:
[
p
reprod
]
tags
:
[
p
iphone
]
only
:
-
master
when
:
manual
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment