Update build inception.yml

master
omidshj 2025-08-26 14:56:36 +03:30
parent 70274b3a8b
commit 26ae5e3669
1 changed files with 2 additions and 1 deletions

View File

@ -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