mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-25 17:12:50 +00:00
bugfix: fix when init registry with other host then push none image (#2830)
Signed-off-by: xuesongzuo@yunify.com <xuesongzuo@yunify.com>
This commit is contained in:
parent
2776e10734
commit
55e8e0046b
|
|
@ -1,13 +1,4 @@
|
|||
---
|
||||
- name: ImageRegistry | Synchronize images to remote host
|
||||
run_once: true
|
||||
when:
|
||||
- printf "%s/images/" .binary_dir | fileExist
|
||||
copy:
|
||||
src: >-
|
||||
{{ .binary_dir }}/images/
|
||||
dest: >-
|
||||
{{ .image_registry.images_dir }}
|
||||
|
||||
- name: ImageRegistry | Ensure Harbor project exists for each image
|
||||
when: .image_registry.type | eq "harbor"
|
||||
|
|
@ -38,10 +29,11 @@
|
|||
done
|
||||
|
||||
- name: ImageRegistry | Push images package to image registry
|
||||
run_once: true
|
||||
image:
|
||||
push:
|
||||
images_dir: >-
|
||||
{{ .image_registry.images_dir }}
|
||||
{{ .binary_dir }}/images/
|
||||
dest: >-
|
||||
{{ .image_registry.auth.registry }}/{{ .module.image.src.reference.repository }}:{{ .module.image.src.reference.reference }}
|
||||
username: >-
|
||||
|
|
|
|||
Loading…
Reference in New Issue