Update build ocean.yml

master
omidshj 2024-09-02 13:32:57 +03:30
parent 0204efc1ef
commit 63cb106ee3
1 changed files with 2 additions and 2 deletions

View File

@ -9,14 +9,14 @@
# version: master
# register: git_result
- name: Go to the ocean directory
command: chdir=/root/code/ocean git pull origin master
command: "chdir={{directory}} git pull origin master"
register: git_result
- name: Build docker image if there were changes
docker_image:
source: build
build:
path: /root/code/ocean
path: "{{/root/code/ocean}}"
name: ocean
tag: "{{semaphore_vars.task_details.target_version}}"
when: git_result.changed