From 52b8de95ca42a8b704d9533e89920c71c4b4702a Mon Sep 17 00:00:00 2001 From: yenienserrano Date: Thu, 7 Dec 2023 16:22:06 +0100 Subject: [PATCH] Update Build final package Github action test version --- .../build_wazuh_dashboard_with_plugins.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_wazuh_dashboard_with_plugins.yml b/.github/workflows/build_wazuh_dashboard_with_plugins.yml index 8607cd748384..6cdd15042544 100644 --- a/.github/workflows/build_wazuh_dashboard_with_plugins.yml +++ b/.github/workflows/build_wazuh_dashboard_with_plugins.yml @@ -23,7 +23,7 @@ on: jobs: build-plugins: name: Build plugins - uses: wazuh/wazuh-dashboard-plugins/.github/workflows/manual-build.yml@6194-updating-github-actions-to-be-able-to-use-them-from-other-repositories + uses: wazuh/wazuh-dashboard-plugins/.github/workflows/manual-build.yml@master with: reference: ${{ inputs.REFERENCE_WAZUH_PLUGINS }} @@ -35,7 +35,7 @@ jobs: build-security-plugin: name: Build security plugin - uses: wazuh/wazuh-security-dashboards-plugin/.github/workflows/manual-build.yml@32-updating-github-actions-to-be-able-to-use-them-from-other-repositories + uses: wazuh/wazuh-security-dashboards-plugin/.github/workflows/manual-build.yml@4.9.0 with: reference: ${{ inputs.REFERENCE_SECURITY_PLUGIN }} @@ -98,7 +98,8 @@ jobs: - name: Build packages run: | - bash ${{ env.CURRENT_DIR }}/dev-tools/build-packages/build-packages.sh \ + cd ${{ env.CURRENT_DIR }}/dev-tools/build-packages + bash ./build-packages.sh \ -v ${{ env.VERSION }} \ -r ${{ env.REVISION }} \ -a file://${{env.CURRENT_DIR}}/artifacts/wazuh-package.zip \ @@ -109,7 +110,7 @@ jobs: - name: Upload tar packages uses: actions/upload-artifact@v3 - if: success() && ( inputs.DISTRIBUTION == 'tar' || inputs.DISTRIBUTION == 'all-platforms' ) + if: success() && ( contains(inputs.DISTRIBUTION, 'tar') || contains(inputs.DISTRIBUTION, 'all-platforms') ) with: name: wazuh-dashboard-${{ env.VERSION }}-${{ env.REVISION }}-linux-${{ matrix.ARCHITECTURE }}.tar.gz path: ${{ env.CURRENT_DIR }}/dev-tools/build-packages/output/wazuh-dashboard-${{ env.VERSION }}-${{ env.REVISION }}-linux-${{ matrix.ARCHITECTURE }}.tar.gz @@ -118,16 +119,16 @@ jobs: - name: Upload deb packages uses: actions/upload-artifact@v3 - if: success() && ( inputs.DISTRIBUTION == 'deb' || inputs.DISTRIBUTION == 'all-platforms' ) + if: success() && ( contains(inputs.DISTRIBUTION, 'deb') || contains(inputs.DISTRIBUTION, 'all-platforms') ) with: name: wazuh-dashboard_${{ env.VERSION }}-${{ env.REVISION }}_amd64.deb - path: ${{ env.CURRENT_DIR }}/dev-tools/build-packages/output/wazuh-dashboard_${{ env.VERSION }}-${{ env.REVISION }}_amd64.deb + path: ${{ env.CURRENT_DIR }}/dev-tools/build-packages/output/deb/wazuh-dashboard_${{ env.VERSION }}-${{ env.REVISION }}_amd64.deb retention-days: 30 - name: Upload rpm packages uses: actions/upload-artifact@v3 - if: success() && ( inputs.DISTRIBUTION == 'rpm' || inputs.DISTRIBUTION == 'all-platforms' ) + if: success() && ( contains(inputs.DISTRIBUTION, 'rpm') || contains(inputs.DISTRIBUTION, 'all-platforms') ) with: name: wazuh-dashboard-${{ env.VERSION }}-${{ env.REVISION }}.x86_64.rpm - path: ${{ env.CURRENT_DIR }}/dev-tools/build-packages/output/wazuh-dashboard-${{ env.VERSION }}-${{ env.REVISION }}.x86_64.rpm + path: ${{ env.CURRENT_DIR }}/dev-tools/build-packages/output/rpm/wazuh-dashboard-${{ env.VERSION }}-${{ env.REVISION }}.x86_64.rpm retention-days: 30