tripleo-ci/roles/build-containers/tasks/tag.yaml

12 lines
496 B
YAML

---
# Tag and push in the same task for the sake of doing less tasks
- name: "Tag w/ arch suffix and push image: {{ image }}"
command: >
{{ cmd }}
with_items:
- "{{ container_cli }} tag {{ image }}:{{ version_hash }} {{ image }}:{{ version_hash }}_{{ ansible_architecture }}"
- "{{ container_cli }} push {% if use_buildah|bool %}{{ container_cli_opt }}{% endif %} {{ image }}:{{ version_hash }}_{{ ansible_architecture }}"
loop_control:
loop_var: "cmd"
changed_when: true