Skip to content

Commit

Permalink
Merge pull request #70 from wazuh/change/68-add-a-new-input-for-wazuh…
Browse files Browse the repository at this point in the history
…-virtual-machines-reference-for-workflows

Add a new input for wazuh-virtual-machines reference to the OVA and AMI workflows
  • Loading branch information
c-bordon authored Oct 8, 2024
2 parents 55edcf2 + 54d817b commit 9b38ae9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/builder_OVA.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
description: "ID used to identify the workflow uniquely."
type: string
required: false
WAZUH_VIRTUAL_MACHINES_REFERENCE:
description: 'Branch or tag of the wazuh-virtual-machines repository'
required: true
default: '4.10.0'
WAZUH_INSTALLATION_ASSISTANT_REFERENCE:
description: 'Branch or tag of the wazuh-installation-assistant repository'
required: true
Expand Down Expand Up @@ -83,8 +87,10 @@ jobs:
- name: Install Ansible
run: sudo apt-get update && sudo apt install -y python3 jq sshpass && python3 -m pip install --user ansible-core==2.16 && pip install pyyaml && ansible-galaxy collection install community.general

- name: Checkout code
- name: Checkout wazuh/wazuh-virtual-machines repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.WAZUH_VIRTUAL_MACHINES_REFERENCE }}

- name: Setting FILENAME var
run: |
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/packages_builder_ami.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
description: "ID used to identify the workflow uniquely."
type: string
required: false
WAZUH_VIRTUAL_MACHINES_REFERENCE:
description: 'Branch or tag of the wazuh-virtual-machines repository'
required: true
default: '4.10.0'
WAZUH_AUTOMATION_REFERENCE:
description: 'Branch or tag of the wazuh-automation repository'
required: true
Expand Down Expand Up @@ -61,6 +65,8 @@ jobs:

- name: Checkout wazuh/wazuh-virtual-machines repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.WAZUH_VIRTUAL_MACHINES_REFERENCE }}

- name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@v3
Expand Down

0 comments on commit 9b38ae9

Please sign in to comment.