probably fix pipeline

This commit is contained in:
Вячеслав 2025-04-23 22:36:52 +05:00
parent eebcce808f
commit cd8df6bf54

View file

@ -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 &&