From fa4c3ec687331e926af0b90e04763949b6094f7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Acu=C3=B1a?= Date: Wed, 15 Apr 2026 16:02:43 -0300 Subject: [PATCH 1/2] Artifact URL download fix --- build-docker-images/build-images.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-docker-images/build-images.sh b/build-docker-images/build-images.sh index 887a2973..6aa64b91 100755 --- a/build-docker-images/build-images.sh +++ b/build-docker-images/build-images.sh @@ -54,7 +54,7 @@ build() { # Prepare logic to fetch the artifact from Wazuh's infrastructure TAG="v${WAZUH_IMAGE_VERSION}" REPO="wazuh/wazuh-docker" - GH_URL="https://api.github.com/repos/${REPO}/git/refs/tags/${TAG}" + GH_URL="https://api.github.com/repos/${REPO}/releases/tags/${TAG}" # Use GitHub API to check if the tag exists publicly. # This determines if we should look for production or staging artifacts. @@ -70,6 +70,7 @@ build() { PACKAGE_URL=packages-staging.xdrsiem.wazuh.info RELEASE_STAGE=pre-release fi + echo "Attempting to download artifacts from: https://${PACKAGE_URL}/${RELEASE_STAGE}/${WAZUH_MAJOR_VERSION}.x/${ARTIFACT_URLS_DOWNLOAD}" # Final download using dynamic variables based on the release type. # Pattern: server / stage / major_version.x / filename curl -fsSL -o "$ARTIFACT_URLS_FILE" "https://${PACKAGE_URL}/${RELEASE_STAGE}/${WAZUH_MAJOR_VERSION}.x/${ARTIFACT_URLS_DOWNLOAD}" From cf2f21baeac296934fc7812b03e6eb7332934ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Acu=C3=B1a?= Date: Wed, 15 Apr 2026 16:10:35 -0300 Subject: [PATCH 2/2] Changelog update --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1d55001..a9c7cfa3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ All notable changes to this project will be documented in this file. ### Fixed +- Artifact URL download fix ([#2306](https://github.com/wazuh/wazuh-docker/pull/2306)) - Change API query method. ([#2275](https://github.com/wazuh/wazuh-docker/pull/2275)) - Change Wazuh manager Healthcheck. ([#2272](https://github.com/wazuh/wazuh-docker/pull/2272)) - Delete WAZUH_AGENT_GROUP variable. ([#2263](https://github.com/wazuh/wazuh-docker/pull/2263))