File: /mnt/HC_Volume_102964888/html/club-35/.gitlab-ci.yml
stages:
- deploy_main
variables:
DEPLOY_PATH: "/mnt/HC_Volume_102964888/html/club-35"
deploy_main:
stage: deploy_main
only:
- main
script:
- echo "Deploying WordPress to dev server..."
- ssh $SSH_USER@$SSH_SERVER "
cd $DEPLOY_PATH &&
git fetch &&
git reset --hard origin/main &&
chown -R workverse-backend:www-data $DEPLOY_PATH &&
find $DEPLOY_PATH -type f -exec chmod 664 {} \; &&
find $DEPLOY_PATH -type d -exec chmod 775 {} \; &&
echo 'Deployment complete, permissions set!'
"