Merge pull request #1729 from wazuh/change/1722-cherry-pick-version-file-standardization

Standardize version file format (cherry-pick to main)
This commit is contained in:
Carlos Bordon
2025-02-19 12:06:26 -03:00
committed by GitHub
4 changed files with 7 additions and 10 deletions

View File

@@ -165,7 +165,7 @@ WAZUH_MONITORING_REPLICAS=0 ##
│   ├── docker-compose.yml │   ├── docker-compose.yml
│   ├── generate-indexer-certs.yml │   ├── generate-indexer-certs.yml
│   └── README.md │   └── README.md
└── VERSION └── VERSION.json
## Branches ## Branches

View File

@@ -1,2 +0,0 @@
WAZUH-DOCKER_VERSION="5.0.0"
REVISION="50000"

4
VERSION.json Normal file
View File

@@ -0,0 +1,4 @@
{
"version": "5.0.0",
"stage": "alpha0"
}

View File

@@ -53,13 +53,8 @@ build() {
elif curl --output /dev/null --silent --head --fail "https://github.com/wazuh/wazuh/tree/${FILEBEAT_TEMPLATE_BRANCH}"; then elif curl --output /dev/null --silent --head --fail "https://github.com/wazuh/wazuh/tree/${FILEBEAT_TEMPLATE_BRANCH}"; then
FILEBEAT_TEMPLATE_BRANCH="${FILEBEAT_TEMPLATE_BRANCH}" FILEBEAT_TEMPLATE_BRANCH="${FILEBEAT_TEMPLATE_BRANCH}"
else else
WAZUH_MASTER_VERSION="$(curl -s https://raw.githubusercontent.com/wazuh/wazuh/master/src/VERSION | sed -e 's/v//g')" echo "The indicated branch does not exist in the wazuh/wazuh repository: ${FILEBEAT_TEMPLATE_BRANCH}"
if [ "${FILEBEAT_TEMPLATE_BRANCH}" == "${WAZUH_MASTER_VERSION}" ]; then clean 1
FILEBEAT_TEMPLATE_BRANCH="master"
else
echo "The indicated branch does not exist in the wazuh/wazuh repository: ${FILEBEAT_TEMPLATE_BRANCH}"
clean 1
fi
fi fi
fi fi