From 830f16fc222b446b4edf1339d0754fb514cdaf14 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Tue, 24 Nov 2020 21:59:07 +0100 Subject: [PATCH] Don't deploy if not on master --- .builds/freebsd.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.builds/freebsd.yml b/.builds/freebsd.yml index f7b9136..971d7a9 100644 --- a/.builds/freebsd.yml +++ b/.builds/freebsd.yml @@ -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: