ff57593984
At present, the only mechanism we have for publishing a stable heat container agent image through manual tagging. This PS aims to automate this through the CI by only building them if they have not already been published. This should allow us to keep better track of which commit was used to build a given heat container agent image. Story: 2007264 Task: 40045 Change-Id: Ifb80575c18a34584afddc8b83084702713a802b7
26 lines
999 B
YAML
26 lines
999 B
YAML
- hosts: all
|
|
tasks:
|
|
- include_vars: container-builder-vars.yaml
|
|
|
|
- name: Log into DockerHub
|
|
docker_login:
|
|
username: "{{ magnum_docker_login.user }}"
|
|
password: "{{ magnum_docker_login.password }}"
|
|
|
|
- name: Push images to DockerHub
|
|
block:
|
|
- command: docker push {{ magnum_repository }}/heat-container-agent:{{ item.tag }}
|
|
with_items: "{{ heat_container_agent_images }}"
|
|
retries: 10
|
|
- command: docker push {{ magnum_repository }}/{{ item[1].name }}:{{ item[0].version }}
|
|
with_nested:
|
|
- "{{ kubernetes_versions }}"
|
|
- "{{ kubernetes_images }}"
|
|
retries: 10
|
|
- command: docker push {{ magnum_repository }}/helm-client:{{ item.version }}
|
|
with_items: "{{ helm_versions }}"
|
|
retries: 10
|
|
- command: docker push {{ magnum_repository }}/cluster-autoscaler:v{{ item.version }}
|
|
with_items: "{{ cluster_autoscaler_versions }}"
|
|
retries: 10
|