Last active
December 27, 2018 01:37
-
-
Save diegomengarda/13e6f5e836aabb6dc029757cadd9f11a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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