free ram to build

master
omidshj 2025-02-07 16:27:32 +03:30
parent 97214f45fb
commit 14da76b2b7
1 changed files with 11 additions and 7 deletions

View File

@ -2,12 +2,11 @@
- name: build ocean
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
- name: Bring down Docker Compose services
command: docker compose down
args:
chdir: "{{ item }}"
loop: "{{ extra_services }}"
- name: Go to the ocean directory
command: "chdir={{directory}} git pull origin {{branch}}"
register: git_result
@ -19,4 +18,9 @@
path: "{{directory}}"
name: ocean
tag: "{{semaphore_vars.task_details.target_version}}"
when: git_result.changed
when: git_result.changed
- name: Bring down Docker Compose services
command: docker compose up -d
args:
chdir: "{{ item }}"
loop: "{{ extra_services }}"