tripleo-ci/roles/build-containers/tasks/provider_push.yaml
Sagi Shnaidman f13eff9cbf Create provider registry and push there CentOS7 images
Change-Id: I4c738802a35d5f8ac03df890a3fe23230db869b9
2020-09-06 14:21:31 +03:00

12 lines
499 B
YAML

---
# Tag and push in the same task for the sake of doing less tasks
- name: "Tag for provider registry and push image: {{ image }}"
command: >
{{ cmd }}
with_items:
- "{{ container_cli }} tag {{ image }}:{{ version_hash }} {{ image.replace(push_registry_port|string, '5001') }}:{{ version_hash }}"
- "{{ container_cli }} push {{ container_cli_opt }} {{ image.replace(push_registry_port|string, '5001') }}:{{ version_hash }}"
loop_control:
loop_var: "cmd"
changed_when: true