Skip to content

Commit

Permalink
Use min package name for release naming convention in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Mar 25, 2024
1 parent c2c52cc commit 2510fa9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -55,7 +55,6 @@ on:
required: true
description: "AWS user secret key"


# ==========================
# Bibliography
# ==========================
Expand Down Expand Up @@ -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 }} \
Expand Down
4 changes: 4 additions & 0 deletions scripts/baptizer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function parse_args() {
;;
x)
IS_RELEASE=true
REVISION="1"
;;
:)
echo "Error: -${OPTARG} requires an argument"
Expand Down Expand Up @@ -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
}

# ====
Expand Down

0 comments on commit 2510fa9

Please sign in to comment.