Update build ocean.yml
parent
0204efc1ef
commit
63cb106ee3
|
@ -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
|
Loading…
Reference in New Issue