File: /mnt/HC_Volume_102964888/html/churchtv/.gitlab-ci.yml
stages:
- deploy_staging
variables:
DEPLOY_PATH: "/mnt/HC_Volume_102964888/html/churchtv"
deploy_staging:
stage: deploy_staging
only:
- staging
script:
- echo "Deploying WordPress to production server..."
- ssh $SSH_USER@$SSH_SERVER "
cd $DEPLOY_PATH &&
git fetch &&
git reset --hard origin/staging &&
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!'
"