From 26ae5e3669442929dd7c9439c2c8e77262bc837a Mon Sep 17 00:00:00 2001 From: omidshj Date: Tue, 26 Aug 2025 14:56:36 +0330 Subject: [PATCH] Update build inception.yml --- build inception.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build inception.yml b/build inception.yml index bab35f0..60c774b 100644 --- a/build inception.yml +++ b/build inception.yml @@ -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