2024-05-17 12:02:07 +03:30
|
|
|
---
|
|
|
|
- name: update inception
|
|
|
|
hosts: all
|
|
|
|
tasks:
|
|
|
|
- name: Change to the app directory and update the repository
|
2024-05-17 12:05:43 +03:30
|
|
|
git:
|
|
|
|
repo: 'https://gt.eron.co/eron/inception.git' # Replace with your repository URL
|
|
|
|
dest: /root/code/inception
|
|
|
|
version: master
|
|
|
|
register: git_result
|
2024-05-17 12:02:07 +03:30
|
|
|
|
2024-05-17 12:05:43 +03:30
|
|
|
- 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
|