diff --git a/build inception.yml b/build inception.yml index bab35f0..60c774b 100644 --- a/build inception.yml +++ b/build inception.yml @@ -3,6 +3,7 @@ hosts: all vars: app_dir: "{{ app_dir | default('/root/code/inception') }}" + branch: "{{ branch | default('master') }}" tasks: # - name: Change to the app directory and update the repository # git: @@ -11,7 +12,7 @@ # version: master # register: git_result - name: Go to the application directory - command: chdir={{ app_dir }} git pull origin master + command: chdir={{ app_dir }} git pull origin {{ branch }} register: git_result - name: Build docker image if there were changes