Skip to content

Commit

Permalink
Rename scripts folder to packaging_scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Mar 27, 2024
1 parent 460481e commit b28055f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ jobs:
- name: Provision
if: ${{ matrix.distribution == 'deb' }}
run: |
sudo bash scripts/provision.sh
sudo bash packaging_scripts/provision.sh
- name: Run `baptizer.sh` (min)
run: |
name=$(bash scripts/baptizer.sh -m \
name=$(bash packaging_scripts/baptizer.sh -m \
-a ${{ matrix.architecture }} \
-d ${{ matrix.distribution }} \
-r ${{ inputs.revision }} \
Expand All @@ -127,7 +127,7 @@ jobs:

- name: Run `baptizer.sh`
run: |
name=$(bash scripts/baptizer.sh \
name=$(bash packaging_scripts/baptizer.sh \
-a ${{ matrix.architecture }} \
-d ${{ matrix.distribution }} \
-r ${{ inputs.revision }} \
Expand All @@ -138,14 +138,14 @@ jobs:

- name: Run `build.sh`
run: |
bash scripts/build.sh \
bash packaging_scripts/build.sh \
-a ${{ matrix.architecture }} \
-d ${{ matrix.distribution }} \
-n ${{ steps.min_package.outputs.name }}
- name: Run `assemble.sh`
run: |
bash scripts/assemble.sh \
bash packaging_scripts/assemble.sh \
-a ${{ matrix.architecture }} \
-d ${{ matrix.distribution }} \
-r ${{ inputs.revision }}
Expand Down
10 changes: 5 additions & 5 deletions scripts/README.md → packaging_scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ For local package generation, use the `build.sh` script. Take a look at the `bui
workflow file for an example of usage.

```bash
bash scripts/build.sh -a x64 -d tar -n $(bash scripts/baptizer.sh -a x64 -d tar -m)
bash packaging_scripts/build.sh -a x64 -d tar -n $(bash packaging_scripts/baptizer.sh -a x64 -d tar -m)
```

#### Act (GitHub Workflow locally)
Expand All @@ -38,7 +38,7 @@ act -j build -W .github/workflows/build.yml --artifact-server-path ./artifacts
Using the [Docker environment](../docker):

```console
docker exec -it wi-build_$(<VERSION) bash scripts/build.sh -a {x64|arm64} -d {rpm|deb|tar}
docker exec -it wi-build_$(<VERSION) bash packaging_scripts/build.sh -a {x64|arm64} -d {rpm|deb|tar}
```

The generated package is sent to the `wazuh-indexer/artifacts` folder.
Expand All @@ -59,7 +59,7 @@ The assembly process for tarballs consists on:
4. Compress.

```console
bash scripts/assemble.sh -a x64 -d tar -r 1
bash packaging_scripts/assemble.sh -a x64 -d tar -r 1
```

### DEB
Expand Down Expand Up @@ -146,7 +146,7 @@ Pre-requisites:
- Using the [Docker environment](../docker):

```console
docker exec -it wi-assemble_$(<VERSION) bash scripts/assemble.sh -a x64 -d deb
docker exec -it wi-assemble_$(<VERSION) bash packaging_scripts/assemble.sh -a x64 -d deb
```

### RPM
Expand Down Expand Up @@ -216,7 +216,7 @@ Pre-requisites:
- Using the [Docker environment](../docker):

```console
docker exec -it wi-assemble_$(<VERSION) bash scripts/assemble.sh -a x64 -d rpm
docker exec -it wi-assemble_$(<VERSION) bash packaging_scripts/assemble.sh -a x64 -d rpm
```

## Bash scripts reference
Expand Down
2 changes: 1 addition & 1 deletion scripts/assemble.sh → packaging_scripts/assemble.sh
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ function main() {

echo "Assembling wazuh-indexer for $PLATFORM-$DISTRIBUTION-$ARCHITECTURE"

VERSION=$(bash scripts/upstream_version.sh)
VERSION=$(bash packaging_scripts/upstream_version.sh)
ARTIFACT_BUILD_NAME=$(ls "${OUTPUT}/dist/" | grep "wazuh-indexer-min.*$SUFFIX.*\.$EXT")
ARTIFACT_PACKAGE_NAME=${ARTIFACT_BUILD_NAME/-min/}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b28055f

Please sign in to comment.