Skip to content

Commit 5eb05c9

Browse files
author
Dennis Schwartz
authored
[S] Only run deployment after merge and not in PR pushes. (#49)
1 parent 1e5d6d4 commit 5eb05c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- python manage.py makemigrations
1313
- python manage.py migrate
1414
- stage: deploy-dev
15-
if: branch = master
15+
if: branch = master AND type = push
1616
before_script:
1717
- docker pull philm/ansible_playbook
1818
- git clone -b master https://github.com/biojs/biojs-backend-ansible.git
@@ -27,7 +27,7 @@ jobs:
2727
philm/ansible_playbook dev-deploy.yml
2828
--private-key=~/.ssh/id_rsa -u ubuntu -i dev_hosts
2929
- stage: deploy-production
30-
if: branch = production
30+
if: branch = production AND type = push
3131
before_script:
3232
- docker pull philm/ansible_playbook
3333
- git clone -b production https://github.com/biojs/biojs-backend-ansible.git

0 commit comments

Comments
 (0)