Handle duplicate images;Add registry endpoint
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2022-08-22 14:54:54 +02:00
parent c8509aa3d5
commit 0534b031fa
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,9 @@
mirrors: mirrors:
cr.step.cm:
endpoint:
- https://registry.{{ vapp['metacluster.fqdn'] }}
rewrite:
"(.*)": "library/cr.step.sm/$1"
docker.io: docker.io:
endpoint: endpoint:
- https://registry.{{ vapp['metacluster.fqdn'] }} - https://registry.{{ vapp['metacluster.fqdn'] }}
@ -15,6 +20,6 @@ mirrors:
rewrite: rewrite:
"(.*)": "library/quay.io/$1" "(.*)": "library/quay.io/$1"
configs: configs:
"registry.{{ vapp['metacluster.fqdn'] }}": registry.{{ vapp['metacluster.fqdn'] }}:
tls: tls:
insecure_skip_verify: true insecure_skip_verify: true

View File

@ -54,7 +54,7 @@
docker://{{ item }} \ docker://{{ item }} \
docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ item }} docker-archive:./{{ ( item | regex_findall('[^/:]+'))[-2] }}.tar:{{ item }}
chdir: /opt/metacluster/container-images chdir: /opt/metacluster/container-images
loop: "{{ (containerimages.results | map(attribute='stdout_lines') | flatten) + dependencies.container_images }}" loop: "{{ ((containerimages.results | map(attribute='stdout_lines') | flatten) + dependencies.container_images) | unique }}"
# - name: Inject manifests # - name: Inject manifests
# ansible.builtin.template: # ansible.builtin.template: