Skip to content

Commit dd75af8

Browse files
Desvelaoclaude
andcommitted
ci(dashboard): upload dashboard package and sha512 to S3 internal repository
Mirrors the artifact-exchange convention already used by the plugin and dashboard tarball builds, uploading to ${CI_DEV_INTERNAL_BUCKET}/${EXECUTION_REPOSITORY}/${github.run_id}/ in addition to the existing upload to the packages bucket. Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com>
1 parent 505fea2 commit dd75af8

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/4_builderpackage_dashboard.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,3 +329,20 @@ jobs:
329329
aws s3 cp ${{ github.workspace }}/dev-tools/build-packages/output/${{ inputs.system }}/${{needs.setup-variables.outputs.PACKAGE_NAME}}.sha512 s3://xdrsiem-packages-dev-internal/development/wazuh/4.x/main/packages/
330330
s3uri="s3://xdrsiem-packages-dev-internal/development/wazuh/4.x/main/packages/${{needs.setup-variables.outputs.PACKAGE_NAME}}.sha512"
331331
echo "S3 sha512 URI: ${s3uri}"
332+
333+
- name: Upload package to S3 internal repository
334+
run: |
335+
echo "Uploading package to internal repository"
336+
artifact_path="${{ github.workspace }}/dev-tools/build-packages/output/${{ inputs.system }}/${{ needs.setup-variables.outputs.PACKAGE_NAME }}"
337+
bucket_path="${{ env.CI_DEV_INTERNAL_BUCKET }}/${{ env.EXECUTION_REPOSITORY }}/${{ github.run_id }}/${{ needs.setup-variables.outputs.PACKAGE_NAME }}"
338+
aws s3 cp $artifact_path $bucket_path
339+
echo "Artifact uploaded to S3: $bucket_path"
340+
341+
- name: Upload SHA512 to S3 internal repository
342+
if: ${{ inputs.checksum }}
343+
run: |
344+
echo "Uploading checksum to internal repository"
345+
artifact_path="${{ github.workspace }}/dev-tools/build-packages/output/${{ inputs.system }}/${{ needs.setup-variables.outputs.PACKAGE_NAME }}.sha512"
346+
bucket_path="${{ env.CI_DEV_INTERNAL_BUCKET }}/${{ env.EXECUTION_REPOSITORY }}/${{ github.run_id }}/${{ needs.setup-variables.outputs.PACKAGE_NAME }}.sha512"
347+
aws s3 cp $artifact_path $bucket_path
348+
echo "Artifact uploaded to S3: $bucket_path"

0 commit comments

Comments
 (0)