diff --git a/.github/workflows/5_pr_check.yml b/.github/workflows/5_pr_check.yml index 1a5c0860..78929af0 100644 --- a/.github/workflows/5_pr_check.yml +++ b/.github/workflows/5_pr_check.yml @@ -109,10 +109,21 @@ jobs: - name: Log in to Amazon ECR uses: aws-actions/amazon-ecr-login@v2 + - name: Download artifact_urls.yml + uses: actions/download-artifact@v4 + with: + name: presigned-artifact-urls-${{ github.run_id }} + path: ./single-node/ + + - name: Add environment variables into GITHUB_ENV + run: | + # Export variables to the environment + awk -F':' '!/^#/ && NF>1 {name=$1; val=substr($0,length(name)+3); gsub(/[-.]/,"_",name); print name "=" val}' artifact_urls.yml >> "$GITHUB_ENV" + working-directory: ./single-node/ + - 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-${{ env.WAZUH_IMAGE_VERSION }}-latest.sh --expires-in 3600 --region us-west-1) - curl -sL "$wazuh_certs_tool_url" -o ./wazuh-certs-tool.sh + curl -sL "$wazuh_certs_tool" -o ./wazuh-certs-tool.sh cat > config.yml <1 {name=$1; val=substr($0,length(name)+3); gsub(/[-.]/,"_",name); print name "=" val}' artifact_urls.yml >> "$GITHUB_ENV" + working-directory: ./multi-node/ + - 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-${{ env.WAZUH_IMAGE_VERSION }}-latest.sh --expires-in 3600 --region us-west-1) - curl -sL "$wazuh_certs_tool_url" -o ./wazuh-certs-tool.sh + curl -sL "$wazuh_certs_tool" -o ./wazuh-certs-tool.sh cat > config.yml <