git by command

master
omidshj 2024-05-17 12:42:00 +03:30
parent 51e049726e
commit 3747ee4069
1 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,9 @@
# dest: /root/code/inception
# version: master
# 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
docker_image:
@ -16,4 +19,4 @@
path: /root/code/inception
name: inception
tag: "13.2"
# when: git_result.changed
when: git_result.changed