Revert blob storage test
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danny Bessems 2022-07-06 16:09:21 +02:00
parent e17cd1b633
commit ab010643df

View File

@ -4,7 +4,7 @@
state: directory state: directory
loop: loop:
- /opt/metacluster/helm-charts - /opt/metacluster/helm-charts
- /opt/metacluster/container-images/shared - /opt/metacluster/container-images
- name: Add helm repositories - name: Add helm repositories
kubernetes.core.helm_repository: kubernetes.core.helm_repository:
@ -45,20 +45,15 @@
ansible.builtin.command: ansible.builtin.command:
cmd: >- cmd: >-
skopeo copy \ skopeo copy \
--retry-times 5 \ --retry-times=5 \
--dest-compress \
--dest-shared-blob-dir /opt/metacluster/container-images/shared \
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
register: imagedownload
until: imagedownload is succeeded
retries: 5
loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten + dependencies.container_images }}" loop: "{{ containerimages.results | map(attribute='stdout_lines') | flatten + dependencies.container_images }}"
#- name: Compress tarballs - name: Compress tarballs
# community.general.archive: community.general.archive:
# dest: /opt/metacluster/container-images/image-tarballs.tgz dest: /opt/metacluster/container-images/image-tarballs.tgz
# path: /opt/metacluster/container-images/* path: /opt/metacluster/container-images/*
# format: gz format: gz
# remove: yes remove: yes