Update container-image-build.yml

This commit is contained in:
ktibi
2017-10-25 15:14:15 +02:00
committed by GitHub
parent adc08fe539
commit 11e9827da2

View File

@@ -8,12 +8,6 @@
# default set of images. # default set of images.
container_image_regexes: "" container_image_regexes: ""
kolla_build_log_path: "/var/log/kolla-build.log" kolla_build_log_path: "/var/log/kolla-build.log"
pre_tasks:
- name: Login to docker registry
docker_login:
username: "{{ kolla_docker_registry_username }}"
password: "{{ kolla_docker_registry_password }}"
when: kolla_docker_registry_username is not none and kolla_docker_registry_password is not none
tasks: tasks:
- name: Set the container image sets to build if images regexes specified - name: Set the container image sets to build if images regexes specified
set_fact: set_fact:
@@ -38,6 +32,12 @@
group: "{{ ansible_user }}" group: "{{ ansible_user }}"
become: True become: True
- name: Login to docker registry
docker_login:
username: "{{ kolla_docker_registry_username }}"
password: "{{ kolla_docker_registry_password }}"
when: kolla_docker_registry_username is not None and kolla_docker_registry_password is not None
- name: Ensure Kolla container images are built - name: Ensure Kolla container images are built
shell: > shell: >
set -o pipefail && set -o pipefail &&