Skip to content

Commit

Permalink
Add checksum generation and upload
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Mar 26, 2024
1 parent 582723b commit 9d273e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,10 @@ jobs:
src="artifacts/dist/${{ steps.package.outputs.name }}"
dest="s3://packages-dev.internal.wazuh.com/development/wazuh/4.x/main/packages/"
aws s3 cp "$src" "$dest"
- name: Upload checksum to S3
if: ${{ inputs.checksum }}
run: |
src="artifacts/dist/${{ steps.package.outputs.name }}.sha512"
dest="s3://packages-dev.internal.wazuh.com/development/wazuh/4.x/main/packages/"
aws s3 cp "$src" "$dest"
3 changes: 3 additions & 0 deletions scripts/assemble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@ function main() {
assemble_deb
;;
esac

# Create checksum
sha512sum "${OUTPUT}/dist/$ARTIFACT_PACKAGE_NAME" > "${OUTPUT}/dist/$ARTIFACT_PACKAGE_NAME".sha512
}

main "${@}"

0 comments on commit 9d273e1

Please sign in to comment.