test: deploy fcm messaging key on server
LocationBasedServices/sumoc-backend/pipeline/head There was a failure building this commit
LocationBasedServices/sumoc-backend/pipeline/head There was a failure building this commit
This commit is contained in:
Vendored
+6
-1
@@ -16,12 +16,17 @@ node('built-in') {
|
||||
// deploy the build output on the server
|
||||
stage ('Deploy') {
|
||||
if (env.BRANCH_NAME == "deploy") {
|
||||
withCredentials([sshUserPrivateKey(credentialsId: "sumoc-server-key", keyFileVariable: "KEYFILE")]) {
|
||||
withCredentials([
|
||||
sshUserPrivateKey(credentialsId: "sumoc-server-key", keyFileVariable: "KEYFILE"),
|
||||
file(credentialsId: "firebase-messaging-key", variable: "FIREBASE_MESSAGING_KEYFILE")
|
||||
]) {
|
||||
echo "Copy docker images to server ..."
|
||||
sh 'scp -i $KEYFILE .env pg-sumoc@apps-dev.nes:~'
|
||||
sh 'scp -i $KEYFILE docker-compose.yml pg-sumoc@apps-dev.nes:~'
|
||||
sh 'scp -i $KEYFILE docker-load.sh pg-sumoc@apps-dev.nes:~'
|
||||
sh 'scp -i $KEYFILE -r docker_images pg-sumoc@apps-dev.nes:~'
|
||||
echo "Copy firebase messaging key to server ..."
|
||||
sh 'scp -i $KEYFILE $FIREBASE_MESSAGING_KEYFILE pg-sumoc@apps-dev.nes:~
|
||||
// echo "Resetting database on server ..."
|
||||
// sh 'ssh -i $KEYFILE pg-sumoc@apps-dev.nes "docker compose stop db"'
|
||||
// sh 'ssh -i $KEYFILE pg-sumoc@apps-dev.nes "docker compose rm -f db"'
|
||||
|
||||
@@ -19,8 +19,8 @@ trenddetection.positive-threshold=25.0
|
||||
# Regular trip detection settings
|
||||
#regulartripdetection.detection-algorithm=iterative
|
||||
# FireBase
|
||||
firebase.config.enabled=false
|
||||
firebase.config.service-account=classpath:firebase-private-key.json
|
||||
firebase.config.enabled=true
|
||||
firebase.config.service-account=classpath:fcm-key.json
|
||||
# Base URL to external services
|
||||
carta.base-url=https://www.innamoruhr.de/c2
|
||||
nominatim.base-url=http://localhost:6666
|
||||
|
||||
Reference in New Issue
Block a user