Merge branch 'unstable' into 'main'
probably fix pipeline See merge request internship-2025/survey-webapp/survey-webapp!9
This commit is contained in:
commit
7e2c0fab31
1 changed files with 4 additions and 0 deletions
|
|
@ -49,7 +49,11 @@ backend-deploy-job:
|
||||||
- ssh-keyscan -H "$DEPLOY_HOST" >> ~/.ssh/known_hosts
|
- ssh-keyscan -H "$DEPLOY_HOST" >> ~/.ssh/known_hosts
|
||||||
script:
|
script:
|
||||||
- echo "Deploying backend to $DEPLOY_HOST"
|
- echo "Deploying backend to $DEPLOY_HOST"
|
||||||
|
- echo "Stopping service"
|
||||||
|
- ssh $DEPLOY_USER@$DEPLOY_HOST "systemctl --user stop SurveyBackend.service"
|
||||||
|
- echo "Copying new build"
|
||||||
- scp -r $PUBLISH_DIR/. $DEPLOY_USER@$DEPLOY_HOST:$BACKEND_DEPLOY_PATH
|
- scp -r $PUBLISH_DIR/. $DEPLOY_USER@$DEPLOY_HOST:$BACKEND_DEPLOY_PATH
|
||||||
|
- echo "okeey let's go"
|
||||||
- >
|
- >
|
||||||
ssh $DEPLOY_USER@$DEPLOY_HOST "
|
ssh $DEPLOY_USER@$DEPLOY_HOST "
|
||||||
cd $BACKEND_DEPLOY_PATH &&
|
cd $BACKEND_DEPLOY_PATH &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue