Updated bumper script for tag variable

This commit is contained in:
c-bordon
2025-06-09 12:53:25 -03:00
parent 578619c0c1
commit 79bc2516b2

View File

@@ -78,7 +78,7 @@ update_stage_in_files() {
update_docker_images_tag() { update_docker_images_tag() {
local NEW_TAG="$1" local NEW_TAG="$1"
local DOCKERFILES=( $(grep_command -E "wazuh/wazuh-[a-zA-Z0-9._-]*" "${DIR}" --exclude="indexer-certs-creator/README.md" --exclude="generate-indexer-certs.yml") ) local DOCKERFILES=( $(grep_command "wazuh/wazuh-[a-zA-Z0-9._-]*" "${DIR}" "--exclude="README.md" --exclude="generate-indexer-certs.yml"") )
for file in "${DOCKERFILES[@]}"; do for file in "${DOCKERFILES[@]}"; do
sed -i -E "s/(wazuh\/wazuh-[a-zA-Z0-9._-]*):[a-zA-Z0-9._-]+/\1:${NEW_TAG}/g" "${file}" sed -i -E "s/(wazuh\/wazuh-[a-zA-Z0-9._-]*):[a-zA-Z0-9._-]+/\1:${NEW_TAG}/g" "${file}"
if [[ $(git diff --name-only "${file}") ]]; then if [[ $(git diff --name-only "${file}") ]]; then