Skip to content

Instantly share code, notes, and snippets.

@diegomengarda
Last active December 27, 2018 01:37
Show Gist options
  • Save diegomengarda/13e6f5e836aabb6dc029757cadd9f11a to your computer and use it in GitHub Desktop.
Save diegomengarda/13e6f5e836aabb6dc029757cadd9f11a to your computer and use it in GitHub Desktop.
image: diegomengarda/sshpass
pipelines:
branches:
master:
- step:
script:
- export SSHPASS=$PRODUCTION_PASS
- sshpass -e ssh -o StrictHostKeyChecking=no $PRODUCTION_USER@$PRODUCTION_HOST "cd /var/www && ./deploy.sh $BITBUCKET_BRANCH"
#!/bin/sh
git pull origin $1 --no-edit
php artisan cache:clear
php artisan view:clear
php artisan config:clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment