Don't deploy if not on master
This commit is contained in:
parent
1f91b76837
commit
830f16fc22
1 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||
|
|
Reference in a new issue