magnum/playbooks/container-builder.yaml
Spyros Trigazis e98b8e52dc Build kubernetes v1.15.0-alpha.1
story: 2005124
task: 30581

Change-Id: I2e5afd0d9a35c8bb800c6aad9911d7c20df4cd78
Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
2019-04-18 12:48:14 +02:00

91 lines
3.3 KiB
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 v1.11"
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_v1_11}}"
buildargs:
KUBE_VERSION: "{{kubernetes_version_v1_11}}"
push: no
with_items: "{{ kubernetes_images }}"
retries: 10
- name: "Build kubernetes images v1.12"
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_v1_12}}"
buildargs:
KUBE_VERSION: "{{kubernetes_version_v1_12}}"
push: no
with_items: "{{ kubernetes_images }}"
retries: 10
- name: "Build kubernetes images v1.13"
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_v1_13}}"
buildargs:
KUBE_VERSION: "{{kubernetes_version_v1_13}}"
push: no
with_items: "{{ kubernetes_images }}"
retries: 10
- name: "Build kubernetes images v1.14"
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_v1_14}}"
buildargs:
KUBE_VERSION: "{{kubernetes_version_v1_14}}"
push: no
with_items: "{{ kubernetes_images }}"
retries: 10
- name: "Build kubernetes images v1.15"
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_v1_15}}"
buildargs:
KUBE_VERSION: "{{kubernetes_version_v1_15}}"
push: no
with_items: "{{ kubernetes_images }}"
retries: 10
- name: "Build helm-client image"
block:
- docker_image:
path: "{{ magnum_src_dir }}/dockerfiles/helm-client"
name: "{{ magnum_repository }}/helm-client"
tag: "{{ helm_version }}"
buildargs:
HELM_VERSION: "{{ helm_version }}"
push: no
retries: 10