deploy:test:
tags:
- dev
only:
- dev
script:
- cd /var/www/innodrive
- git fetch --all
- git reset --hard origin/dev
- rm -rf public/wp-content/themes/innodrive/cache/*
deploy:live:
tags:
- live
only:
- master
script:
- cd /var/www/innodrive/
- whoami
- git config --global --add safe.directory /var/www/innodrive
- git fetch --all
- git reset --hard origin/master