-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add checksum input and update the upload files to S3 steps #106
Add checksum input and update the upload files to S3 steps #106
Conversation
run: | | ||
aws s3 cp ${{ github.workspace }}/${{ env.WAZUH_VERSION }}/${{ env.WAZUH_INSTALL_NAME }}.sha512 s3://${{ env.S3_BUCKET }}/${{ env.S3_REPOSITORY_PATH }}/${{ env.WAZUH_VERSION }}/ | ||
s3uri="s3://${{ env.S3_BUCKET }}/${{ env.S3_REPOSITORY_PATH }}/${{ env.WAZUH_VERSION }}/${{ env.WAZUH_INSTALL_NAME }}.sha512" | ||
echo "S3 sha512 wazuh-install-tool checksum URI: ${s3uri}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the -tool
string from wazuh-install
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id: | ||
description: "ID used to identify the workflow uniquely." | ||
type: string | ||
required: false | ||
workflow_call: | ||
inputs: | ||
WAZUH_INSTALLATION_ASSISTANT_REFERENCE: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use lowercase for the input names: WAZUH_INSTALLATION_ASSISTANT_REFERENCE
Lines: 7 and 25, and update the references.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in b0b7347
Description
The goal of this PR is to add the mandatory checksum field to the workflow for building the installation assistant packages.
With this, a new step has been added to generate the
sha512
files and another step to upload them to S3.Additionally, an
echo
with the URI of each file uploaded to S3 has been added to better identify it.Note
This step implies that we have to upload the installation assistant files one by one to correctly obtain the URI of each file.
Workflow output test
Related issue