
`build_image.sh` expects full branch name as argument like e.g. `stable/stein`. This change fixes Zuul playbook to pass the right argument. Depends-On: https://review.openstack.org/649538 Change-Id: Ie132389a21ed74cec4e7e22ecdcb9254964b9d3c
20 lines
634 B
YAML
20 lines
634 B
YAML
---
|
|
- hosts: all
|
|
tasks:
|
|
- name: Run node setup script
|
|
shell: "{{ zuul.projects['git.openstack.org/openstack/monasca-common'].src_dir }}/playbooks/setup_ci.sh"
|
|
become: true
|
|
|
|
- name: Changing permission of Docker socket to 666
|
|
file:
|
|
path: /run/docker.sock
|
|
mode: 666
|
|
become: true
|
|
|
|
- name: Build Docker image
|
|
shell: "{{ zuul.project.src_dir }}/docker/build_image.sh {{ zuul.tag if zuul.pipeline == 'release' else zuul.branch }}"
|
|
become: true
|
|
|
|
- name: List images
|
|
shell: "docker images --format '{% raw %}{{ .Repository }}:{{ .Tag }}{% endraw %}' | grep monasca"
|