60c996d2b4
* do not log the login command * change dockerhub creds * fix reference of tag in the push images task * add retries * remove repository parameter * pull fedora from docker.io * name docker_image tasks for each kubernetes and magnum images * drop async logs Change-Id: Iead202bdf9d7d42d0b7e21bea73a298678be714b Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
28 lines
980 B
YAML
28 lines
980 B
YAML
- hosts: all
|
|
tasks:
|
|
- include_vars: container-builder-vars.yaml
|
|
|
|
- name: "Build magnum images"
|
|
block:
|
|
- name: "Build {{ magnum_repository }}/{{ item.name }}:{{ item.tag }} image"
|
|
docker_image:
|
|
path: "{{ magnum_src_dir }}/dockerfiles/{{ item.name }}"
|
|
name: "{{ magnum_repository }}/{{ item.name }}"
|
|
tag: "{{ item.tag }}"
|
|
push: no
|
|
with_items: "{{ magnum_images }}"
|
|
retries: 10
|
|
|
|
- name: "Build kubernetes images"
|
|
block:
|
|
- name: "Build {{ magnum_repository }}/{{ item.name }}:{{ item.tag }} image"
|
|
docker_image:
|
|
path: "{{ magnum_src_dir }}/dockerfiles/{{ item.name }}"
|
|
name: "{{ magnum_repository }}/{{ item.name }}"
|
|
tag: "{{ kubernetes_version }}"
|
|
buildargs:
|
|
KUBE_VERSION: "{{ kubernetes_version }}"
|
|
push: no
|
|
with_items: "{{ kubernetes_images }}"
|
|
retries: 10
|