mirror of
				https://github.com/wazuh/wazuh-docker.git
				synced 2025-11-04 05:53:16 +00:00 
			
		
		
		
	Merge pull request #1728 from wazuh/enhancement/1722-change-VERSION-file-format
Change VERSION file format
This commit is contained in:
		@@ -9,7 +9,7 @@ All notable changes to this project will be documented in this file.
 | 
			
		||||
 | 
			
		||||
### Changed
 | 
			
		||||
 | 
			
		||||
- None
 | 
			
		||||
- Change VERSION file format ([#1728](https://github.com/wazuh/wazuh-docker/pull/1728)) \- (VERSION file)
 | 
			
		||||
 | 
			
		||||
### Fixed
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -165,7 +165,7 @@ WAZUH_MONITORING_REPLICAS=0         ##
 | 
			
		||||
    │   ├── docker-compose.yml
 | 
			
		||||
    │   ├── generate-indexer-certs.yml
 | 
			
		||||
    │   └── README.md
 | 
			
		||||
    └── VERSION
 | 
			
		||||
    └── VERSION.json
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										4
									
								
								VERSION.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								VERSION.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
{
 | 
			
		||||
    "version": "4.12.0",
 | 
			
		||||
    "stage": "alpha0"
 | 
			
		||||
}
 | 
			
		||||
@@ -53,13 +53,8 @@ build() {
 | 
			
		||||
        elif curl --output /dev/null --silent --head --fail "https://github.com/wazuh/wazuh/tree/${FILEBEAT_TEMPLATE_BRANCH}"; then
 | 
			
		||||
            FILEBEAT_TEMPLATE_BRANCH="${FILEBEAT_TEMPLATE_BRANCH}"
 | 
			
		||||
        else
 | 
			
		||||
            WAZUH_MASTER_VERSION="$(curl -s https://raw.githubusercontent.com/wazuh/wazuh/master/src/VERSION | sed -e 's/v//g')"
 | 
			
		||||
            if [ "${FILEBEAT_TEMPLATE_BRANCH}" == "${WAZUH_MASTER_VERSION}" ]; then
 | 
			
		||||
                FILEBEAT_TEMPLATE_BRANCH="master"
 | 
			
		||||
            else
 | 
			
		||||
                echo "The indicated branch does not exist in the wazuh/wazuh repository: ${FILEBEAT_TEMPLATE_BRANCH}"
 | 
			
		||||
                clean 1
 | 
			
		||||
            fi
 | 
			
		||||
            echo "The indicated branch does not exist in the wazuh/wazuh repository: ${FILEBEAT_TEMPLATE_BRANCH}"
 | 
			
		||||
            clean 1
 | 
			
		||||
        fi
 | 
			
		||||
    fi
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user