Skip to content

Commit

Permalink
Update -d option in the password tool workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Enaraque committed Dec 18, 2024
1 parent 084855c commit aeb9b6e
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/password-tool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@ on:
pull_request:
paths:
- 'passwords_tool/**'
workflow_dispatch:
inputs:
WAZUH_INSTALLATION_ASSISTANT_REFERENCE:
description: "Branch or tag of the wazuh-installation-assistant repository."
required: true
default: 4.10.2
REPOSITORY:
description: "Repository to use for the installation."
type: choice
options:
- "pre-release"
- "staging"
required: true
default: "pre-release"

env:
REPOSITORY: ${{ github.event_name == 'pull_request' && 'pre-release' || inputs.REPOSITORY }}

jobs:
Build-password-tool-and-wazuh-install-scripts:
Expand All @@ -11,7 +28,7 @@ jobs:
- name: Build password-tool and wazuh-install scripts
run: |
bash builder.sh -p
bash builder.sh -i -d staging
bash builder.sh -i
shell: bash
- uses: actions/upload-artifact@v3
with:
Expand All @@ -31,7 +48,7 @@ jobs:
name: scripts
- name: Install wazuh
run: |
sudo bash wazuh-install.sh -a -v
sudo bash wazuh-install.sh -a -v -d ${{ env.REPOSITORY }}
- name: Uncompress wazuh install files
run: sudo tar -xvf wazuh-install-files.tar
- name: Run script
Expand All @@ -47,7 +64,7 @@ jobs:
name: scripts
- name: Install wazuh
run: |
sudo bash wazuh-install.sh -a -v
sudo bash wazuh-install.sh -a -v -d ${{ env.REPOSITORY }}
- name: Uncompress wazuh install files
run: sudo tar -xvf wazuh-install-files.tar
- name: Run script
Expand Down

0 comments on commit aeb9b6e

Please sign in to comment.