This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
solutions-tsg-scripts/roles/package-build/tasks/ImageDownload.yml
2020-07-07 06:23:37 +08:00

24 lines
536 B
YAML

---
- name: "pull image from remote git registry"
docker_image:
name: "{{ item.name }}"
tag: "{{ item.tag }}"
source: pull
with_items: "{{ dockerImages }}"
- name: "add tag"
docker_image:
name: "{{ item.name }}"
repository: "{{ item.repo }}"
force_tag: yes
source: local
with_items: "{{ dockerImages2tags }}"
- name: "Archive image"
docker_image:
name: "{{ item.name }}"
tag: "{{ item.tag }}"
archive_path: "{{ item.tarpath }}"
source: local
with_items: "{{ dockerImagesTar }}"