Deploy the server on prod
This commit is contained in:
parent
7668a7d781
commit
709c6b6e82
1 changed files with 20 additions and 9 deletions
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
|
@ -25,6 +25,8 @@ pipeline {
|
|||
when {
|
||||
branch 'production'
|
||||
}
|
||||
parallel {
|
||||
stage('Deploy prod client') {
|
||||
environment {
|
||||
REACT_APP_MYRADIO_NONAPI_BASE = 'https://ury.org.uk/myradio'
|
||||
REACT_APP_MYRADIO_BASE = 'https://ury.org.uk/api/v2'
|
||||
|
@ -37,5 +39,14 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy server') {
|
||||
steps {
|
||||
sshagent(credentials: ['ury']) {
|
||||
sh 'scp -v server.py liquidsoap@urysteve.ury:/opt/webstudioserver/server.py'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue