master
omidshj 2024-05-17 12:05:43 +03:30
parent 8ae1b58b43
commit 58926b6d51
1 changed files with 13 additions and 13 deletions

26
i3v.yml
View File

@ -3,17 +3,17 @@
hosts: all
tasks:
- name: Change to the app directory and update the repository
git:
repo: 'https://gt.eron.co/eron/inception.git' # Replace with your repository URL
dest: /root/code/inception
version: master
register: git_result
git:
repo: 'https://gt.eron.co/eron/inception.git' # Replace with your repository URL
dest: /root/code/inception
version: master
register: git_result
- name: Build docker image if there were changes
docker_image:
source: build
build:
path: /root/code/inception
name: inception
tag: "13.2"
when: git_result.changed
- name: Build docker image if there were changes
docker_image:
source: build
build:
path: /root/code/inception
name: inception
tag: "13.2"
when: git_result.changed