Skip to content

Commit f73a819

Browse files
authored
Merge pull request #1728 from wazuh/enhancement/1722-change-VERSION-file-format
Change VERSION file format
2 parents 7be457e + ebf8379 commit f73a819

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ All notable changes to this project will be documented in this file.
99

1010
### Changed
1111

12-
- None
12+
- Change VERSION file format ([#1728](https://github.com/wazuh/wazuh-docker/pull/1728)) \- (VERSION file)
1313

1414
### Fixed
1515

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ WAZUH_MONITORING_REPLICAS=0 ##
165165
│   ├── docker-compose.yml
166166
│   ├── generate-indexer-certs.yml
167167
│   └── README.md
168-
└── VERSION
168+
└── VERSION.json
169169

170170

171171

VERSION

Lines changed: 0 additions & 2 deletions
This file was deleted.

VERSION.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"version": "4.12.0",
3+
"stage": "alpha0"
4+
}

build-docker-images/build-images.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,8 @@ build() {
5353
elif curl --output /dev/null --silent --head --fail "https://github.com/wazuh/wazuh/tree/${FILEBEAT_TEMPLATE_BRANCH}"; then
5454
FILEBEAT_TEMPLATE_BRANCH="${FILEBEAT_TEMPLATE_BRANCH}"
5555
else
56-
WAZUH_MASTER_VERSION="$(curl -s https://raw.githubusercontent.com/wazuh/wazuh/master/src/VERSION | sed -e 's/v//g')"
57-
if [ "${FILEBEAT_TEMPLATE_BRANCH}" == "${WAZUH_MASTER_VERSION}" ]; then
58-
FILEBEAT_TEMPLATE_BRANCH="master"
59-
else
60-
echo "The indicated branch does not exist in the wazuh/wazuh repository: ${FILEBEAT_TEMPLATE_BRANCH}"
61-
clean 1
62-
fi
56+
echo "The indicated branch does not exist in the wazuh/wazuh repository: ${FILEBEAT_TEMPLATE_BRANCH}"
57+
clean 1
6358
fi
6459
fi
6560

0 commit comments

Comments
 (0)