kubekey/builtin/playbooks/artifact_export.yaml
II 865913fea9
feat: add more golangci lint rule. (#2366)
Signed-off-by: joyceliu <joyceliu@yunify.com>
Co-authored-by: joyceliu <joyceliu@yunify.com>
2024-08-21 16:33:36 +08:00

13 lines
330 B
YAML

- hosts:
- localhost
roles:
- init/init-artifact
tasks:
- name: Package image
image:
pull: "{{ .image_manifests | toJson }}"
when: .image_manifests | default list | len | lt 0
- name: Export artifact
command: |
cd {{ .work_dir }} && tar -czvf kubekey-artifact.tar.gz kubekey/