system-config/playbooks/roles/zuul-preview/tasks/main.yaml
James E. Blair 4d91f29b39 Run docker-compose pull before docker-compose up
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
2019-03-04 14:40:35 -08:00

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/