diff --git a/build ocean.yml b/build ocean.yml index 38fc4a5..61a1f7f 100644 --- a/build ocean.yml +++ b/build ocean.yml @@ -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 \ No newline at end of file + when: git_result.changed + - name: Bring down Docker Compose services + command: docker compose up -d + args: + chdir: "{{ item }}" + loop: "{{ extra_services }}" \ No newline at end of file