Update build inception.yml
parent
70274b3a8b
commit
26ae5e3669
|
@ -3,6 +3,7 @@
|
||||||
hosts: all
|
hosts: all
|
||||||
vars:
|
vars:
|
||||||
app_dir: "{{ app_dir | default('/root/code/inception') }}"
|
app_dir: "{{ app_dir | default('/root/code/inception') }}"
|
||||||
|
branch: "{{ branch | default('master') }}"
|
||||||
tasks:
|
tasks:
|
||||||
# - name: Change to the app directory and update the repository
|
# - name: Change to the app directory and update the repository
|
||||||
# git:
|
# git:
|
||||||
|
@ -11,7 +12,7 @@
|
||||||
# version: master
|
# version: master
|
||||||
# register: git_result
|
# register: git_result
|
||||||
- name: Go to the application directory
|
- 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
|
register: git_result
|
||||||
|
|
||||||
- name: Build docker image if there were changes
|
- name: Build docker image if there were changes
|
||||||
|
|
Loading…
Reference in New Issue