From fdfa8349844f2c8cbd802d5f2cd11636ee50ec8b Mon Sep 17 00:00:00 2001 From: omidshj Date: Fri, 17 May 2024 18:06:47 +0330 Subject: [PATCH] clean --- i3v.yml => build generate-image.yml | 6 +++--- i3.yml | 11 ----------- inception.yml | 12 ------------ test.yml | 12 ------------ 4 files changed, 3 insertions(+), 38 deletions(-) rename i3v.yml => build generate-image.yml (76%) delete mode 100644 i3.yml delete mode 100644 inception.yml delete mode 100644 test.yml diff --git a/i3v.yml b/build generate-image.yml similarity index 76% rename from i3v.yml rename to build generate-image.yml index 59ea94b..d86b7d8 100644 --- a/i3v.yml +++ b/build generate-image.yml @@ -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 \ No newline at end of file diff --git a/i3.yml b/i3.yml deleted file mode 100644 index 6d3d67c..0000000 --- a/i3.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/inception.yml b/inception.yml deleted file mode 100644 index ba5b506..0000000 --- a/inception.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/test.yml b/test.yml deleted file mode 100644 index 6ff517d..0000000 --- a/test.yml +++ /dev/null @@ -1,12 +0,0 @@ ---- -- name: Create a file in /root directory - hosts: all - # become: yes # This is necessary to gain root privileges - tasks: - - name: Ensure test.txt exists in /root directory - file: - path: /root/test.txt - state: touch - owner: root - group: root - mode: '0644' \ No newline at end of file