Skip to content

Commit 67f2ab6

Browse files
rauldpmAlexRuiz7
andcommitted
Added S3 URI output to package generation upload (#249)
* Added S3 URI output * Added ID input and S3 URI output * Improved workflow run name * Added name statement * Added name statement * Removed file * Added ID input description * Update build.yml --------- Co-authored-by: Álex Ruiz <[email protected]>
1 parent 7918f31 commit 67f2ab6

File tree

2 files changed

+12
-78
lines changed

2 files changed

+12
-78
lines changed

.github/workflows/build.yml

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
run-name: Build ${{ inputs.distribution }} Wazuh Indexer on ${{ inputs.architecture }} | ${{ inputs.id }}
12
name: Build packages (on demand)
23

34
# This workflow runs when any of the following occur:
@@ -30,6 +31,10 @@ on:
3031
description: "Checksum ?"
3132
type: boolean
3233
default: false
34+
id:
35+
description: "ID used to identify the workflow uniquely."
36+
type: string
37+
required: false
3338
workflow_call:
3439
inputs:
3540
revision:
@@ -56,6 +61,9 @@ on:
5661
description: "Checksum ?"
5762
type: boolean
5863
default: false
64+
id:
65+
type: string
66+
required: false
5967
secrets:
6068
CI_INTERNAL_DEVELOPMENT_BUCKET_USER_ACCESS_KEY:
6169
required: true
@@ -185,10 +193,14 @@ jobs:
185193
src="artifacts/dist/${{ steps.package.outputs.name }}"
186194
dest="s3://packages-dev.internal.wazuh.com/development/wazuh/4.x/main/packages/"
187195
aws s3 cp "$src" "$dest"
196+
s3uri="${dest}${{ steps.package.outputs.name }}"
197+
echo "S3 URI: ${s3uri}"
188198
189199
- name: Upload checksum to S3
190200
if: ${{ inputs.upload && inputs.checksum }}
191201
run: |
192202
src="artifacts/dist/${{ steps.package.outputs.name }}.sha512"
193203
dest="s3://packages-dev.internal.wazuh.com/development/wazuh/4.x/main/packages/"
194204
aws s3 cp "$src" "$dest"
205+
s3uri="${dest}${{ steps.package.outputs.name }}.sha512"
206+
echo "S3 sha512 URI: ${s3uri}"

.github/workflows/build_single.yml

-78
This file was deleted.

0 commit comments

Comments
 (0)