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)) 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}"