git by command
parent
51e049726e
commit
3747ee4069
5
i3v.yml
5
i3v.yml
|
@ -8,6 +8,9 @@
|
||||||
# dest: /root/code/inception
|
# dest: /root/code/inception
|
||||||
# version: master
|
# version: master
|
||||||
# register: git_result
|
# register: git_result
|
||||||
|
- name: Go to the application directory
|
||||||
|
command: chdir=/root/code/inception git pull origin master
|
||||||
|
register: git_result
|
||||||
|
|
||||||
- name: Build docker image if there were changes
|
- name: Build docker image if there were changes
|
||||||
docker_image:
|
docker_image:
|
||||||
|
@ -16,4 +19,4 @@
|
||||||
path: /root/code/inception
|
path: /root/code/inception
|
||||||
name: inception
|
name: inception
|
||||||
tag: "13.2"
|
tag: "13.2"
|
||||||
# when: git_result.changed
|
when: git_result.changed
|
Loading…
Reference in New Issue