wip calculate-sha [skip-ci]

This commit is contained in:
Michael Jerger 2023-08-11 14:24:11 +02:00
parent 88253f49ac
commit 074e77196e
2 changed files with 2 additions and 2 deletions

View file

@ -61,7 +61,7 @@ class ReleaseService:
self.git_api.push_follow_tags() self.git_api.push_follow_tags()
def publish_artifacts(self, release: Release): def publish_artifacts(self, release: Release):
# calculate checksum self.artifact_deployment_api.calculate_checksums(artifact_path=)
# create release # create release
# add artifacts to release # add artifacts to release
pass pass

View file

@ -231,6 +231,6 @@ class ArtifactDeploymentApi:
+ '-H "Content-Type: multipart/form-data" ' + '-H "Content-Type: multipart/form-data" '
+ f'-F "attachment=@{attachment};type={attachment_type}"') + f'-F "attachment=@{attachment};type={attachment_type}"')
def calculate_checksums(self, build_path: str): def calculate_checksums(self, artifact_path: str):
self.execution_api.execute(f"find {build_path} -type f -exec sha256sum {{}}; | sort > {build_path} sha256sum.lst") self.execution_api.execute(f"find {build_path} -type f -exec sha256sum {{}}; | sort > {build_path} sha256sum.lst")
self.execution_api.execute(f"find {build_path} -type f -exec sha512sum {{}}; | sort > {build_path} sha512sum.lst") self.execution_api.execute(f"find {build_path} -type f -exec sha512sum {{}}; | sort > {build_path} sha512sum.lst")