From 2510fa938a158a894228ea5db7e1e18752f450b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lex=20Ruiz?= Date: Mon, 25 Mar 2024 17:06:22 +0100 Subject: [PATCH] Use min package name for release naming convention in workflow --- .github/workflows/build.yml | 5 ++--- scripts/baptizer.sh | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b0c4cf8c5875e..ae1d0a866af9d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,7 @@ on: type: boolean default: false distribution: - description: '[ "tar", "rpm", "deb", "docker" ]' + description: '[ "tar", "rpm", "deb" ]' type: string default: '[ "rpm", "deb" ]' architecture: @@ -55,7 +55,6 @@ on: required: true description: "AWS user secret key" - # ========================== # Bibliography # ========================== @@ -106,7 +105,7 @@ jobs: run: | sudo bash scripts/provision.sh - - name: Run `baptizer.sh` + - name: Run `baptizer.sh` (min) run: | name=$(bash scripts/baptizer.sh -m \ -a ${{ matrix.architecture }} \ diff --git a/scripts/baptizer.sh b/scripts/baptizer.sh index ccd51ec58d15d..ca283bd39d872 100644 --- a/scripts/baptizer.sh +++ b/scripts/baptizer.sh @@ -43,6 +43,7 @@ function parse_args() { ;; x) IS_RELEASE=true + REVISION="1" ;; :) echo "Error: -${OPTARG} requires an argument" @@ -113,6 +114,9 @@ function get_release_name() { else PACKAGE_NAME=wazuh-indexer_"$VERSION"-"$REVISION"_"$SUFFIX"."$EXT" fi + if "$IS_MIN"; then + PACKAGE_NAME=${PACKAGE_NAME/wazuh-indexer/wazuh-indexer-min} + fi } # ====