Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 4.8.0 into master #2602

Merged
merged 77 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
70d6b1e
Add new role to grant ISM API permissions
AlexRuiz7 Oct 24, 2023
0100962
Testing ism
c-bordon Nov 1, 2023
741cbf7
Bumped readme with Wazuh dashboard 2.10.0
rauldpm Oct 16, 2023
d4268fd
Bumped to 2.10.0
rauldpm Oct 16, 2023
98acce6
Removed dashboard.chunk.1 references
rauldpm Oct 19, 2023
d507c29
Improved configuration path config
rauldpm Oct 19, 2023
405403c
Added setcap to fallback node
rauldpm Oct 19, 2023
4f95625
Removed config sed
rauldpm Oct 19, 2023
d97c95d
Restore keystore sed
rauldpm Oct 19, 2023
4f085b7
Changed Authorization to authorization to equate with OpenSearch Dash…
rauldpm Oct 19, 2023
28bb4cf
Improved %files section
rauldpm Oct 23, 2023
7a51a26
Fixed binaries sed
rauldpm Oct 23, 2023
3e0901d
Added missing end line
rauldpm Oct 23, 2023
c85e0f0
Modify the side menu and remove the mlCommonsDashboards plugin on Waz…
Desvelao Oct 23, 2023
340b9c9
fix: header button navigation to home application (wz-home) (#2556)
Desvelao Oct 25, 2023
376b9bb
Improved customizations and adapted OpenSearch internal changes
rauldpm Oct 25, 2023
3afd05e
Updated to 2.10.0 changes
rauldpm Oct 25, 2023
c666317
Added APP defaultRoute replace to new wz-home
rauldpm Oct 26, 2023
ea213aa
Added output directory
rauldpm Oct 26, 2023
5272da6
Added end line
rauldpm Oct 26, 2023
778ed8e
Added new script for indexer ism
c-bordon Nov 2, 2023
c1504e2
feat(dashboard): change the order of Explore category and title of In…
Desvelao Nov 3, 2023
facb130
Merge pull request #2563 from wazuh/enhancement/2521-bump-dashboard
davidjiglesias Nov 6, 2023
73c1862
Fixing ism script for package execution
c-bordon Nov 6, 2023
a4d52ce
Changing order of scripts execution
c-bordon Nov 6, 2023
edc958f
Changing order of scripts execution
c-bordon Nov 6, 2023
3ca7581
Merge with 4.8.0
c-bordon Nov 6, 2023
253c4e8
removed unattended changes
c-bordon Nov 6, 2023
1159962
Testing ism in unattended
c-bordon Nov 6, 2023
88c79a3
Apply code formatting
AlexRuiz7 Nov 6, 2023
b25a812
Fix bugs
AlexRuiz7 Nov 6, 2023
3656638
testing unattended
c-bordon Nov 7, 2023
a024eff
Merge pull request #2582 from wazuh/change/425-ism-rollover-include-t…
c-bordon Nov 7, 2023
07ff16d
Merge pull request #2553 from wazuh/2552-ism-rollover-add-role
c-bordon Nov 7, 2023
534ce4f
Merge branch '4.8.0' of github.com:wazuh/wazuh-packages into change/u…
c-bordon Nov 7, 2023
8f38320
Changes related to manager compilation
jnasselle Apr 16, 2023
95f1831
Fix on generate_x_package.sh scripts
jnasselle Apr 17, 2023
df70404
Add missing package on debian jessie Dockerfile
jnasselle Apr 18, 2023
2cf2b93
Changes requested by the team
jnasselle Apr 18, 2023
39347ab
GH Action related changes
jnasselle May 31, 2023
e2cc25b
Fix GH Actions to build rpm/deb packages
jnasselle Jun 1, 2023
46cbdad
Fix GH Action typo
jnasselle Jun 1, 2023
fe1e74d
Add GHA condition to container build and push
jnasselle Jun 1, 2023
82f5277
Minor fixes on GH Actions
jnasselle Jun 1, 2023
2b5b0fe
Separated manager & client docker images names
ncvicchi Aug 14, 2023
baa5366
Separated manager & client docker images names
ncvicchi Aug 14, 2023
f88ac80
Adapted workflows to new naming for docker images
jotacarma90 Aug 14, 2023
1fabb81
Fixed i386 arq
ncvicchi Aug 14, 2023
03898e1
Several fixes
jnasselle Aug 22, 2023
64d987e
Change to a more coherent name some variables
ncvicchi Sep 4, 2023
c512416
Deprecated centos 6 for manager
ncvicchi Sep 5, 2023
a498c8a
Add Python 3.10 support
jnasselle Oct 5, 2023
37383a2
Fix some file format in the end line
jotacarma90 Nov 8, 2023
0a4ef53
Fix ism script for distributed
c-bordon Nov 8, 2023
76f27d8
Fix bug with -i option
AlexRuiz7 Nov 8, 2023
b4da392
Moved ISM scripts from package to base
c-bordon Nov 8, 2023
366bd0a
Merge pull request #2586 from wazuh/change/moveISMscriptsToBase-to4.8.0
c-bordon Nov 8, 2023
ff2d54c
Improve error handling
AlexRuiz7 Nov 8, 2023
48263fb
Merge pull request #2585 from wazuh/2583-ism-rollover-bug-when-trying…
c-bordon Nov 8, 2023
7a14c0b
Merge branch '4.8.0' of github.com:wazuh/wazuh-packages into change/u…
c-bordon Nov 8, 2023
d5206a6
Added validation for ISM error
c-bordon Nov 8, 2023
f195c56
Merge pull request #2164 from wazuh/2154-deprecate-centos6-debian7
vikman90 Nov 9, 2023
1926852
Wazuh central components removal is now checked
davidcr01 Nov 9, 2023
277a6f1
Merge pull request #2588 from wazuh/bug/2574-wazuh-central-components…
c-bordon Nov 9, 2023
9fa6f51
Merge pull request #2584 from wazuh/change/updateUnattendedWithISMscr…
c-bordon Nov 9, 2023
57f0b9c
Extend indexer-init.sh to accept arguments
AlexRuiz7 Nov 9, 2023
4791f92
Merge pull request #2590 from wazuh/enhancement/internal-425-extend-i…
c-bordon Nov 9, 2023
d5135ca
Changed ISM script
rauldpm Nov 9, 2023
bc48ccb
Added workflow_dispatch
rauldpm Nov 9, 2023
e346604
Merge pull request #2592 from wazuh/enhancement/idr440-ism
davidjiglesias Nov 13, 2023
e85788d
Updated 4.7.0 release date
JcabreraC Nov 13, 2023
f410236
Merge pull request #2597 from wazuh/2595-update-4.7.0-eta
vikman90 Nov 13, 2023
9c690e9
Merge branch '4.7.0' into 4.7.1
jotacarma90 Nov 14, 2023
a4cf1c3
Merge pull request #2600 from wazuh/merge-4.7.0-into-4.7.1
vikman90 Nov 14, 2023
f6e428c
Merge branch '4.7.1' into 4.8.0
jotacarma90 Nov 14, 2023
60ce04f
Merge pull request #2601 from wazuh/merge-4.7.1-into-4.8.0
vikman90 Nov 14, 2023
887dac4
Merge branch '4.8.0'
jotacarma90 Nov 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/actions/offline-installation/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ function dashboard_installation() {
enable_start_service "wazuh-dashboard"
elif [ "${sys_type}" == "rpm" ]; then
/usr/share/wazuh-dashboard/bin/opensearch-dashboards "-c /etc/wazuh-dashboard/opensearch_dashboards.yml" --allow-root > /dev/null 2>&1 &
fi
fi

sleep 10
# In this context, 302 HTTP code refers to SSL certificates warning: success.
# In this context, 302 HTTP code refers to SSL certificates warning: success.
if [ "$(curl -k -s -I -w "%{http_code}" https://localhost -o /dev/null --fail)" -ne "302" ]; then
echo "ERROR: The Wazuh dashboard installation has failed."
exit 1
Expand All @@ -91,7 +91,7 @@ function dashboard_installation() {

function download_resources() {

check_file "${ABSOLUTE_PATH}"/wazuh-install.sh
check_file "${ABSOLUTE_PATH}"/wazuh-install.sh
bash "${ABSOLUTE_PATH}"/wazuh-install.sh -dw "${sys_type}"
echo "INFO: Downloading the resources..."

Expand All @@ -118,7 +118,7 @@ function download_resources() {
}

function enable_start_service() {

systemctl daemon-reload
systemctl enable "${1}"
systemctl start "${1}"
Expand Down Expand Up @@ -166,7 +166,7 @@ function filebeat_installation() {
enable_start_service "filebeat"
elif [ "${sys_type}" == "rpm" ]; then
/usr/share/filebeat/bin/filebeat --environment systemd -c /etc/filebeat/filebeat.yml --path.home /usr/share/filebeat --path.config /etc/filebeat --path.data /var/lib/filebeat --path.logs /var/log/filebeat &
fi
fi

sleep 10
check_shards
Expand All @@ -190,7 +190,7 @@ function indexer_initialize() {
echo "ERROR: The indexer node is not started."
exit 1
fi
/usr/share/wazuh-indexer/bin/indexer-security-init.sh
/usr/share/wazuh-indexer/bin/indexer-init.sh

}

Expand All @@ -199,10 +199,10 @@ function indexer_installation() {
if [ "${sys_type}" == "rpm" ]; then
rpm --import ./wazuh-offline/wazuh-files/GPG-KEY-WAZUH
fi
install_package "wazuh-indexer"

install_package "wazuh-indexer"
check_package "wazuh-indexer"

echo "INFO: Generating certificates of the Wazuh indexer..."
NODE_NAME=node-1
mkdir /etc/wazuh-indexer/certs
Expand Down Expand Up @@ -293,7 +293,7 @@ function install_package() {
dpkg -i ./wazuh-offline/wazuh-packages/"${1}"*.deb
elif [ "${sys_type}" == "rpm" ]; then
rpm -ivh ./wazuh-offline/wazuh-packages/"${1}"*.rpm
fi
fi

}

Expand All @@ -306,6 +306,6 @@ function manager_installation() {
enable_start_service "wazuh-manager"
elif [ "${sys_type}" == "rpm" ]; then
/var/ossec/bin/wazuh-control start
fi
fi

}
22 changes: 13 additions & 9 deletions .github/workflows/build-deb-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,39 +37,43 @@ jobs:
deb_images:
- 'debs/Debian/**'
- 'debs/build.sh'
deb_images_i386:
- 'debs/Debian/i386/**'
deb_images_agent_i386:
- 'debs/Debian/7/i386/**'
- 'debs/build.sh'
deb_images_amd64:
- 'debs/Debian/amd64/**'
deb_images_manager_amd64:
- 'debs/Debian/8/amd64/**'
- 'debs/build.sh'
deb_images_agent_amd64:
- 'debs/Debian/7/amd64/**'
- 'debs/build.sh'
deb_packages:
- 'debs/SPECS/**'
- 'debs/generate_debian_package.sh'

- name: Set tag and container name
if: steps.changes.outputs.deb_packages == 'true' || (steps.changes.outputs.deb_images_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || (steps.changes.outputs.deb_images_amd64 == 'true' && matrix.ARCHITECTURE == 'amd64')
if: steps.changes.outputs.deb_packages == 'true' || (steps.changes.outputs.deb_images_agent_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || ((steps.changes.outputs.deb_images_manager_amd64 == 'true' || steps.changes.outputs.deb_images_agent_amd64 == 'true') && matrix.ARCHITECTURE == 'amd64')
run: |
MAJOR=$(sed 's/\([0-9]*\.[0-9]*\)\.[0-9]*/\1/' $GITHUB_WORKSPACE/VERSION)
if [ "${{ steps.changes.outputs.deb_images }}" == "true" ]; then echo "TAG=${{ github.head_ref }}" >> $GITHUB_ENV; else echo "TAG=$MAJOR" >> $GITHUB_ENV ; fi
if [ $MAJOR == "4.9" ]; then echo "VERSION=master" >> $GITHUB_ENV ; else echo "VERSION=$(cat $GITHUB_WORKSPACE/VERSION)" >> $GITHUB_ENV; fi
echo "CONTAINER_NAME=deb_builder_${{ matrix.ARCHITECTURE }}" >> $GITHUB_ENV
echo "CONTAINER_NAME=deb_${{ matrix.TYPE }}_builder_${{ matrix.ARCHITECTURE }}" >> $GITHUB_ENV
if [ "${{ matrix.ARCHITECTURE }}" == "amd64" ]; then echo "CONTAINER_NAME=deb_${{ matrix.TYPE }}_builder_${{ matrix.ARCHITECTURE }}" >> $GITHUB_ENV ; else echo "CONTAINER_NAME=deb_${{ matrix.TYPE }}_builder_${{ matrix.ARCHITECTURE }}" >> $GITHUB_ENV ; fi

- name: Download docker image for package building
if: steps.changes.outputs.deb_packages == 'true' || (steps.changes.outputs.deb_images_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || (steps.changes.outputs.deb_images_amd64 == 'true' && matrix.ARCHITECTURE == 'amd64')
if: steps.changes.outputs.deb_packages == 'true' || (steps.changes.outputs.deb_images_agent_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || ((steps.changes.outputs.deb_images_manager_amd64 == 'true' || steps.changes.outputs.deb_images_agent_amd64 == 'true') && matrix.ARCHITECTURE == 'amd64')
run: |
bash $GITHUB_WORKSPACE/.github/actions/ghcr-pull-and-push/pull_image_from_ghcr.sh ${{ secrets.GITHUB_TOKEN }} ${{ github.actor}} $CONTAINER_NAME ${{ env.TAG }}

- name: Build the ${{ matrix.ARCHITECTURE }} deb Wazuh ${{ matrix.TYPE }} package
if: steps.changes.outputs.deb_packages == 'true' || (steps.changes.outputs.deb_images_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || (steps.changes.outputs.deb_images_amd64 == 'true' && matrix.ARCHITECTURE == 'amd64')
if: steps.changes.outputs.deb_packages == 'true' || (steps.changes.outputs.deb_images_agent_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || ((steps.changes.outputs.deb_images_manager_amd64 == 'true' || steps.changes.outputs.deb_images_agent_amd64 == 'true') && matrix.ARCHITECTURE == 'amd64')
working-directory: ./debs
run: |
REVISION="${{ github.head_ref }}"
bash generate_debian_package.sh -b ${{ env.VERSION }} -t ${{ matrix.TYPE }} -a ${{ matrix.ARCHITECTURE }} --dev -j 2 --dont-build-docker --tag ${{ env.TAG }} -r $REVISION
echo "PACKAGE_NAME=$(ls ./output | grep .deb | head -n 1)" >> $GITHUB_ENV

- name: Upload Wazuh ${{ matrix.TYPE }} ${{ matrix.ARCHITECTURE }} package as artifact
if: steps.changes.outputs.deb_packages == 'true' || (steps.changes.outputs.deb_images_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || (steps.changes.outputs.deb_images_amd64 == 'true' && matrix.ARCHITECTURE == 'amd64')
if: steps.changes.outputs.deb_packages == 'true' || (steps.changes.outputs.deb_images_agent_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || ((steps.changes.outputs.deb_images_manager_amd64 == 'true' || steps.changes.outputs.deb_images_agent_amd64 == 'true') && matrix.ARCHITECTURE == 'amd64')
uses: actions/upload-artifact@v2
with:
name: ${{ env.PACKAGE_NAME }}
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/build-rpm-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,39 +38,42 @@ jobs:
rpm_images:
- 'rpms/CentOS/**'
- 'rpms/build.sh'
rpm_images_i386:
rpm_images_agent_i386:
- 'rpms/CentOS/6/i386/**'
- 'rpms/build.sh'
rpm_images_x86_64:
rpm_images_agent_x86_64:
- 'rpms/CentOS/6/x86_64/**'
- 'rpms/build.sh'
rpm_images_manager_x86_64:
- 'rpms/CentOS/7/x86_64/**'
- 'rpms/build.sh'
rpm_packages:
- 'rpms/SPECS/**'
- 'rpms/generate_rpm_package.sh'

- name: Set tag and container name
if : steps.changes.outputs.rpm_packages == 'true' || (steps.changes.outputs.rpm_images_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || (steps.changes.outputs.rpm_images_x86_64 == 'true' && matrix.ARCHITECTURE == 'x86_64')
if : steps.changes.outputs.rpm_packages == 'true' || (steps.changes.outputs.rpm_images_agent_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || ((steps.changes.outputs.rpm_images_manager_x86_64 == 'true' || steps.changes.outputs.rpm_images_agent_x86_64 == 'true') && matrix.ARCHITECTURE == 'x86_64')
run: |
MAJOR=$(sed 's/\([0-9]*\.[0-9]*\)\.[0-9]*/\1/' $GITHUB_WORKSPACE/VERSION)
if [ "${{ steps.changes.outputs.rpm_images }}" == "true" ]; then echo "TAG=${{ github.head_ref }}" >> $GITHUB_ENV; else echo "TAG=$MAJOR" >> $GITHUB_ENV ; fi
if [ $MAJOR == "4.9" ]; then echo "VERSION=master" >> $GITHUB_ENV ; else echo "VERSION=$(cat $GITHUB_WORKSPACE/VERSION)" >> $GITHUB_ENV; fi
if [ "${{ matrix.ARCHITECTURE }}" == "x86_64" ]; then echo "CONTAINER_NAME=rpm_builder_x86" >> $GITHUB_ENV ; else echo "CONTAINER_NAME=rpm_builder_${{ matrix.ARCHITECTURE }}" >> $GITHUB_ENV ; fi
if [ "${{ matrix.ARCHITECTURE }}" == "x86_64" ]; then echo "CONTAINER_NAME=rpm_${{ matrix.TYPE }}_builder_x86" >> $GITHUB_ENV ; else echo "CONTAINER_NAME=rpm_${{ matrix.TYPE }}_builder_${{ matrix.ARCHITECTURE }}" >> $GITHUB_ENV ; fi

- name: Download docker image for package building
if : steps.changes.outputs.rpm_packages == 'true' || (steps.changes.outputs.rpm_images_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || (steps.changes.outputs.rpm_images_x86_64 == 'true' && matrix.ARCHITECTURE == 'x86_64')
if : steps.changes.outputs.rpm_packages == 'true' || (steps.changes.outputs.rpm_images_agent_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || ((steps.changes.outputs.rpm_images_manager_x86_64 == 'true' || steps.changes.outputs.rpm_images_agent_x86_64 == 'true') && matrix.ARCHITECTURE == 'x86_64')
run: |
bash $GITHUB_WORKSPACE/.github/actions/ghcr-pull-and-push/pull_image_from_ghcr.sh ${{ secrets.GITHUB_TOKEN }} ${{ github.actor}} $CONTAINER_NAME ${{ env.TAG }}

- name: Build the ${{ matrix.ARCHITECTURE }} rpm Wazuh ${{ matrix.TYPE }} package
if : steps.changes.outputs.rpm_packages == 'true' || (steps.changes.outputs.rpm_images_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || (steps.changes.outputs.rpm_images_x86_64 == 'true' && matrix.ARCHITECTURE == 'x86_64')
if : steps.changes.outputs.rpm_packages == 'true' || (steps.changes.outputs.rpm_images_agent_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || ((steps.changes.outputs.rpm_images_manager_x86_64 == 'true' || steps.changes.outputs.rpm_images_agent_x86_64 == 'true') && matrix.ARCHITECTURE == 'x86_64')
working-directory: ./rpms
run: |
REVISION=$( echo ${{ github.head_ref }} | sed 's/-/./g' )
bash generate_rpm_package.sh -b ${{ env.VERSION }} -t ${{ matrix.TYPE }} -a ${{ matrix.ARCHITECTURE }} --dev -j 2 --dont-build-docker --tag ${{ env.TAG }} -r $REVISION
echo "PACKAGE_NAME=$(ls ./output | grep .rpm | head -n 1)" >> $GITHUB_ENV

- name: Upload Wazuh ${{ matrix.TYPE }} ${{ matrix.ARCHITECTURE }} package as artifact
if : steps.changes.outputs.rpm_packages == 'true' || (steps.changes.outputs.rpm_images_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || (steps.changes.outputs.rpm_images_x86_64 == 'true' && matrix.ARCHITECTURE == 'x86_64')
if : steps.changes.outputs.rpm_packages == 'true' || (steps.changes.outputs.rpm_images_agent_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || ((steps.changes.outputs.rpm_images_manager_x86_64 == 'true' || steps.changes.outputs.rpm_images_agent_x86_64 == 'true') && matrix.ARCHITECTURE == 'x86_64')
uses: actions/upload-artifact@v2
with:
name: ${{ env.PACKAGE_NAME }}
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/offline-installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ on:
pull_request:
paths:
- 'unattended_installer/install_functions/wazuh-offline-download.sh'

workflow_dispatch:

jobs:
Build-wazuh-install-script:
runs-on: ubuntu-latest
Expand All @@ -28,7 +29,7 @@ jobs:
path: |
unattended_installer/wazuh-install.sh
if-no-files-found: error

Test-offline-installation-debian:
runs-on: ubuntu-latest
needs: Build-wazuh-install-script
Expand All @@ -41,7 +42,7 @@ jobs:

- name: Move unattended script
run: cp $GITHUB_WORKSPACE/wazuh-install.sh $GITHUB_WORKSPACE/.github/actions/offline-installation/wazuh-install.sh

- name: Run script
run: sudo bash $GITHUB_WORKSPACE/.github/actions/offline-installation/offline-installation.sh

Expand All @@ -54,9 +55,9 @@ jobs:
- uses: actions/download-artifact@v3
with:
name: script

- name: Move unattended script
run: cp $GITHUB_WORKSPACE/wazuh-install.sh $GITHUB_WORKSPACE/.github/actions/offline-installation/wazuh-install.sh

- name: Launch docker and run script
run: sudo docker run -v $GITHUB_WORKSPACE/.github/actions/offline-installation/:/tests centos:centos7 bash /tests/offline-installation.sh
19 changes: 9 additions & 10 deletions .github/workflows/test-install-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:

Wait-for-package-building:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Cancel previous runs
uses: fkirc/skip-duplicate-actions@master
Expand Down Expand Up @@ -55,25 +53,26 @@ jobs:
deb_images:
- 'debs/Debian/**'
- 'debs/build.sh'
deb_images_i386:
- 'debs/Debian/i386/**'
deb_images_agent_i386:
- 'debs/Debian/7/i386/**'
- 'debs/build.sh'
deb_images_amd64:
- 'debs/Debian/amd64/**'
- 'debs/Debian/7/amd64/**'
- 'debs/Debian/8/amd64/**'
- 'debs/build.sh'
deb_packages:
- 'debs/SPECS/**'
- 'debs/generate_debian_package.sh'

- name: Setup directories and variables
if: steps.changes.outputs.deb_packages == 'true' || (steps.changes.outputs.deb_images_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || (steps.changes.outputs.deb_images_amd64 == 'true' && matrix.ARCHITECTURE == 'amd64')
if: steps.changes.outputs.deb_packages == 'true' || (steps.changes.outputs.deb_images_agent_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || (steps.changes.outputs.deb_images_amd64 == 'true' && matrix.ARCHITECTURE == 'amd64')
run: |
VERSION=$(cat $GITHUB_WORKSPACE/VERSION)
REVISION=$( echo ${{ github.head_ref }})
echo "PACKAGE_NAME=wazuh-${{ matrix.type }}_${VERSION}-${REVISION}_${{ matrix.arch }}.deb" >> $GITHUB_ENV

- name: Download the Wazuh ${{ matrix.type }} package for ${{ matrix.system.NAME }}
if: steps.changes.outputs.deb_packages == 'true' || (steps.changes.outputs.deb_images_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || (steps.changes.outputs.deb_images_amd64 == 'true' && matrix.ARCHITECTURE == 'amd64')
if: steps.changes.outputs.deb_packages == 'true' || (steps.changes.outputs.deb_images_agent_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || (steps.changes.outputs.deb_images_amd64 == 'true' && matrix.ARCHITECTURE == 'amd64')
id: download-artifact
continue-on-error: true
uses: dawidd6/action-download-artifact@v2
Expand All @@ -84,11 +83,11 @@ jobs:
if_no_artifact_found: fail

- name: Move the Wazuh ${{ matrix.type }} package for ${{ matrix.distro_name }} to the packages directory
if: steps.changes.outputs.deb_packages == 'true' || (steps.changes.outputs.deb_images_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || (steps.changes.outputs.deb_images_amd64 == 'true' && matrix.ARCHITECTURE == 'amd64')
if: steps.changes.outputs.deb_packages == 'true' || (steps.changes.outputs.deb_images_agent_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || (steps.changes.outputs.deb_images_amd64 == 'true' && matrix.ARCHITECTURE == 'amd64')
run: |
mkdir $GITHUB_WORKSPACE/packages
mv ${{env.PACKAGE_NAME}} $GITHUB_WORKSPACE/packages

- name: Launch docker
if: steps.changes.outputs.deb_packages == 'true' || (steps.changes.outputs.deb_images_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || (steps.changes.outputs.deb_images_amd64 == 'true' && matrix.ARCHITECTURE == 'amd64')
run: sudo docker run -v $GITHUB_WORKSPACE/.github/actions/test-install-components/:/tests -v $GITHUB_WORKSPACE/packages/:/packages ${{ matrix.arch }}/${{ matrix.distro_name }} bash /tests/install_component.sh $PACKAGE_NAME ${{ matrix.type }}
if: steps.changes.outputs.deb_packages == 'true' || (steps.changes.outputs.deb_images_agent_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || (steps.changes.outputs.deb_images_amd64 == 'true' && matrix.ARCHITECTURE == 'amd64')
run: sudo docker run -v $GITHUB_WORKSPACE/.github/actions/test-install-components/:/tests -v $GITHUB_WORKSPACE/packages/:/packages ${{ matrix.arch }}/${{ matrix.distro_name }} bash /tests/install_component.sh $PACKAGE_NAME ${{ matrix.type }}
Loading
Loading