Standarize Artifact URL keys (#2286)

* Standardize artifact URL keys for Docker builds

* Changelog update

---------

Co-authored-by: Gonzalo Acuña <teddytpc1@gmail.com>
Co-authored-by: Gonzalo Acuña <33964202+teddytpc1@users.noreply.github.com>
This commit is contained in:
Jesús García
2026-04-06 09:01:41 +02:00
committed by GitHub
co-authored by Gonzalo Acuña Gonzalo Acuña
parent 0eb0d7914f
commit 8eca20a5ae
7 changed files with 37 additions and 28 deletions
+5 -3
View File
@@ -3,14 +3,16 @@ FROM amazonlinux:2023 AS builder
ARG WAZUH_VERSION
ARG TARGETARCH
ARG wazuh_indexer_amd64_rpm
ARG wazuh_indexer_arm64_rpm
ARG wazuh_indexer_x86_64_rpm
ARG wazuh_indexer_aarch64_rpm
ARG wazuh_certs_tool
ARG wazuh_config_yml
COPY config/config.sh .
RUN URL_VAR="wazuh_indexer_${TARGETARCH}_rpm" && \
RUN RPM_ARCH="x86_64" && \
if [ "${TARGETARCH}" = "arm64" ]; then RPM_ARCH="aarch64"; fi && \
URL_VAR="wazuh_indexer_${RPM_ARCH}_rpm" && \
indexer_url="${!URL_VAR}" && \
dnf install curl-minimal openssl xz tar findutils shadow-utils -y &&\
curl -o /wazuh-indexer.rpm "${indexer_url}" && \