Generate checksums for DIB images

Change-Id: If8c0cdab5c443f7533873eef0d79673760bfa51b
This commit is contained in:
Dmitry Tantsur 2019-11-18 16:59:20 +01:00
parent f9ec4c5d16
commit 86f9d22592
1 changed files with 13 additions and 0 deletions

View File

@ -19,3 +19,16 @@
shell: |
tar -czf "{{ ipa_tar_dir }}/{{ image_name }}.tar.gz" {{ image_name }}*
mv {{ image_name }}* "{{ ipa_raw_dir }}"
- name: Generate image checksums
shell:
cmd: sha256sum "{{ image_name }}.{{ item }}" > "{{ image_name }}.{{ item }}.sha256"
chdir: "{{ ipa_raw_dir }}"
with_items:
- kernel
- initramfs
- name: Generate tarball checksum
shell:
cmd: sha256sum "{{ image_name }}.tar.gz" > "{{ image_name }}.tar.gz.sha256"
chdir: "{{ ipa_tar_dir }}"