wip calculate-sha [skip-ci]

pull/1/head
Michael Jerger 11 months ago
parent 88253f49ac
commit 074e77196e

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

@ -231,6 +231,6 @@ class ArtifactDeploymentApi:
+ '-H "Content-Type: multipart/form-data" '
+ 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 sha512sum {{}}; | sort > {build_path} sha512sum.lst")

Loading…
Cancel
Save