Add Wazuh version and revision into wazuh-certs-tool and config file

This commit is contained in:
Victor Carlos Erenu
2026-02-03 02:35:52 +07:00
parent affb232e93
commit 56636c0dd7
6 changed files with 14 additions and 13 deletions
+3 -3
View File
@@ -40,7 +40,7 @@ jobs:
image_tag: ${{ needs.prepare-variables.outputs.WAZUH_IMAGE_VERSION }}
docker_reference: ${{ github.head_ref }}
revision: ${{ needs.prepare-variables.outputs.WAZUH_TAG_REVISION }}
reference: "latest"
commit_list: '["latest", "latest", "latest", "latest"]'
id: ${{ github.run_id }}
dev: true
@@ -111,7 +111,7 @@ jobs:
- name: Create single node certficates
run: |
wazuh_certs_tool_url=$(aws s3 presign s3://${{ vars.AWS_S3_BUCKET_DEV }}/development/wazuh/5.x/secondary/installation-assistant/${{ env.WAZUH_IMAGE_VERSION }}/wazuh-certs-tool.sh --expires-in 3600 --region us-west-1)
wazuh_certs_tool_url=$(aws s3 presign s3://${{ vars.AWS_S3_BUCKET_DEV }}/development/wazuh/5.x/secondary/installation-assistant/${{ env.WAZUH_IMAGE_VERSION }}/wazuh-certs-tool-${{ env.WAZUH_IMAGE_VERSION }}-latest.sh --expires-in 3600 --region us-west-1)
curl -sL "$wazuh_certs_tool_url" -o ./wazuh-certs-tool.sh
cat > config.yml <<EOF
nodes:
@@ -351,7 +351,7 @@ jobs:
- name: Create multi node certficates
run: |
wazuh_certs_tool_url=$(aws s3 presign s3://${{ vars.AWS_S3_BUCKET_DEV }}/development/wazuh/5.x/secondary/installation-assistant/${{ env.WAZUH_IMAGE_VERSION }}/wazuh-certs-tool.sh --expires-in 3600 --region us-west-1)
wazuh_certs_tool_url=$(aws s3 presign s3://${{ vars.AWS_S3_BUCKET_DEV }}/development/wazuh/5.x/secondary/installation-assistant/${{ env.WAZUH_IMAGE_VERSION }}/wazuh-certs-tool-${{ env.WAZUH_IMAGE_VERSION }}-latest.sh --expires-in 3600 --region us-west-1)
curl -sL "$wazuh_certs_tool_url" -o ./wazuh-certs-tool.sh
cat > config.yml <<EOF
nodes:
@@ -134,7 +134,7 @@ jobs:
needs: setup
env:
ARTIFACT_URLS_FILE_TEMP: "/tmp/wazuh-docker/artifact_urls.yml"
ARTIFACT_URLS_FILE_TEMP: "/tmp/wazuh-docker/artifact_urls_test.yml"
steps:
- name: Configure AWS credentials
@@ -209,6 +209,7 @@ jobs:
line=${line//\$\{\{ env.MANAGER_REVISION \}\}/$MANAGER_COMMIT}
line=${line//\$\{\{ env.DASHBOARD_REVISION \}\}/$DASHBOARD_COMMIT}
line=${line//\$\{\{ env.AGENT_REVISION \}\}/$AGENT_COMMIT}
line=${line//\$\{\{ env.ASSISTANT_REVISION \}\}/latest}
# Append the processed line to the output file
echo "$line" >> "$OUTPUT_FILE"