Don't deploy if not on master

This commit is contained in:
Gabriel Augendre 2020-11-24 21:59:07 +01:00
parent 1f91b76837
commit 830f16fc22
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -24,6 +24,11 @@ tasks:
- test: |
cd blog
poetry run ./docker/runtests.sh
- check-branch: |
cd blog
if [ "$(git rev-parse master)" != "$(git rev-parse HEAD)" ]; then \
complete-build; \
fi
- deploy: |
ansible-playbook -i ~/ansiblehosts --ssh-common-args "-o StrictHostKeyChecking=no" blog/ansible/playbook.yml
triggers: