Update build inception.yml
parent
70274b3a8b
commit
26ae5e3669
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue