4d91f29b39
This will make sure that the latest relevant images are in the local image storage, and therefore, will cause docker-compose up to recreate containers when the images are updated. Change-Id: Ic6f0bc8c8aea5b5c16501f4ab5d3095fb70c0ff7
18 lines
433 B
YAML
18 lines
433 B
YAML
- name: Synchronize docker-compose directory
|
|
synchronize:
|
|
src: zuul-preview-docker/
|
|
dest: /etc/zuul-preview-docker/
|
|
- name: Install docker-compose
|
|
package:
|
|
name:
|
|
- docker-compose
|
|
state: present
|
|
- name: Run docker-compose pull
|
|
shell:
|
|
cmd: docker-compose pull
|
|
chdir: /etc/zuul-preview-docker/
|
|
- name: Run docker-compose up
|
|
shell:
|
|
cmd: docker-compose up -d
|
|
chdir: /etc/zuul-preview-docker/
|