clean
parent
7ecc25ea3f
commit
fdfa834984
|
@ -9,14 +9,14 @@
|
|||
# version: master
|
||||
# register: git_result
|
||||
- name: Go to the application directory
|
||||
command: chdir=/root/code/inception git pull origin master
|
||||
command: chdir=/root/code/generate-image git pull origin master
|
||||
register: git_result
|
||||
|
||||
- name: Build docker image if there were changes
|
||||
docker_image:
|
||||
source: build
|
||||
build:
|
||||
path: /root/code/inception
|
||||
name: inception
|
||||
path: /root/code/generate-image
|
||||
name: generate-image
|
||||
tag: "{{semaphore_vars.task_details.target_version}}"
|
||||
when: git_result.changed
|
11
i3.yml
11
i3.yml
|
@ -1,11 +0,0 @@
|
|||
---
|
||||
- name: update inception
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Go to the application directory
|
||||
command: chdir=/root/code/inception git pull origin master
|
||||
register: git_output
|
||||
|
||||
- name: Run build script
|
||||
command: chdir=/root/code/inception ./build.sh
|
||||
when: git_output.changed
|
|
@ -1,12 +0,0 @@
|
|||
---
|
||||
- name: update inception
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Change directory to inception
|
||||
chdir: /root/code/inception # Replace with the actual path
|
||||
- name: Pull latest changes from Git repository
|
||||
git:
|
||||
repo: https://gt.eron.co/eron/inception.git
|
||||
update: yes
|
||||
- name: Run build script
|
||||
command: ./build.sh
|
Loading…
Reference in New Issue