From 71409122beee6ed9cfb417192a371cc43af060e3 Mon Sep 17 00:00:00 2001 From: David Moreau Simard Date: Wed, 17 Nov 2021 18:12:22 -0500 Subject: [PATCH] build-release: record the sha256sum of the release tarball This way we can use it in tests later. In the meantime it can be picked up by ara. --- roles/build-release/tasks/build.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/build-release/tasks/build.yaml b/roles/build-release/tasks/build.yaml index 75b32f7b..9b7c5e57 100644 --- a/roles/build-release/tasks/build.yaml +++ b/roles/build-release/tasks/build.yaml @@ -58,6 +58,12 @@ chdir: "{{ playbook_dir | dirname }}" creates: "{{ _release_archive }}" +# We can use this to test that the release on PyPi matches later (for example) +- name: Record the sha256sum for the built tarball + command: sha256sum {{ _release_archive }} + changed_when: false + register: _tarball_checksum + - name: Compute a galaxy-requirements.yml file for the release command: >- poetry run {{ role_path }}/files/deps-to-galaxy.py --depsfile {{ antsibull_data_dir }}/{{ _deps_file }}