Fix YAML line 207: separate variable from quoted string in echo command
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -205,7 +205,7 @@ steps:
|
|||||||
echo "✅ Continuing with integration tests on local environment"
|
echo "✅ Continuing with integration tests on local environment"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
- echo "Deploying to staging server: $STAGING_HOST"
|
- echo "Deploying to staging server:" $STAGING_HOST
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- echo "$STAGING_KEY" > ~/.ssh/id_rsa
|
- echo "$STAGING_KEY" > ~/.ssh/id_rsa
|
||||||
- chmod 600 ~/.ssh/id_rsa
|
- chmod 600 ~/.ssh/id_rsa
|
||||||
@@ -222,7 +222,7 @@ steps:
|
|||||||
ssh $STAGING_USER@$STAGING_HOST "cd /opt/smartsoltech-staging &&
|
ssh $STAGING_USER@$STAGING_HOST "cd /opt/smartsoltech-staging &&
|
||||||
echo 'Fetching latest changes...' &&
|
echo 'Fetching latest changes...' &&
|
||||||
git fetch origin &&
|
git fetch origin &&
|
||||||
git reset --hard origin/\${DRONE_BRANCH} &&
|
git reset --hard origin/master &&
|
||||||
echo 'Restarting services...' &&
|
echo 'Restarting services...' &&
|
||||||
docker-compose down --timeout 30 &&
|
docker-compose down --timeout 30 &&
|
||||||
docker-compose pull &&
|
docker-compose pull &&
|
||||||
@@ -454,7 +454,7 @@ steps:
|
|||||||
- |
|
- |
|
||||||
ssh $PROD_USER@$PROD_HOST "cd /opt/smartsoltech &&
|
ssh $PROD_USER@$PROD_HOST "cd /opt/smartsoltech &&
|
||||||
echo 'Creating backup...' &&
|
echo 'Creating backup...' &&
|
||||||
git stash push -m 'Pre-deployment backup $(date)' || true &&
|
git stash push -m \"Pre-deployment backup \$(date)\" || true &&
|
||||||
docker-compose down --timeout 30 || true"
|
docker-compose down --timeout 30 || true"
|
||||||
- echo "Pulling latest changes..."
|
- echo "Pulling latest changes..."
|
||||||
- |
|
- |
|
||||||
|
|||||||
Reference in New Issue
Block a user