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: |
|
- test: |
|
||||||
cd blog
|
cd blog
|
||||||
poetry run ./docker/runtests.sh
|
poetry run ./docker/runtests.sh
|
||||||
|
- check-branch: |
|
||||||
|
cd blog
|
||||||
|
if [ "$(git rev-parse master)" != "$(git rev-parse HEAD)" ]; then \
|
||||||
|
complete-build; \
|
||||||
|
fi
|
||||||
- deploy: |
|
- deploy: |
|
||||||
ansible-playbook -i ~/ansiblehosts --ssh-common-args "-o StrictHostKeyChecking=no" blog/ansible/playbook.yml
|
ansible-playbook -i ~/ansiblehosts --ssh-common-args "-o StrictHostKeyChecking=no" blog/ansible/playbook.yml
|
||||||
triggers:
|
triggers:
|
||||||
|
|
Reference in a new issue