free ram to build
parent
97214f45fb
commit
14da76b2b7
|
@ -2,12 +2,11 @@
|
||||||
- name: build ocean
|
- name: build ocean
|
||||||
hosts: all
|
hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
# - name: Change to the app directory and update the repository
|
- name: Bring down Docker Compose services
|
||||||
# git:
|
command: docker compose down
|
||||||
# repo: 'https://gt.eron.co/eron/inception.git' # Replace with your repository URL
|
args:
|
||||||
# dest: /root/code/inception
|
chdir: "{{ item }}"
|
||||||
# version: master
|
loop: "{{ extra_services }}"
|
||||||
# register: git_result
|
|
||||||
- name: Go to the ocean directory
|
- name: Go to the ocean directory
|
||||||
command: "chdir={{directory}} git pull origin {{branch}}"
|
command: "chdir={{directory}} git pull origin {{branch}}"
|
||||||
register: git_result
|
register: git_result
|
||||||
|
@ -20,3 +19,8 @@
|
||||||
name: ocean
|
name: ocean
|
||||||
tag: "{{semaphore_vars.task_details.target_version}}"
|
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 }}"
|
Loading…
Reference in New Issue