diff --git a/.github/workflows/build_wazuh_dashboard_with_plugins.yml b/.github/workflows/build_wazuh_dashboard_with_plugins.yml index 3c34da1f2a5..523f935ac46 100644 --- a/.github/workflows/build_wazuh_dashboard_with_plugins.yml +++ b/.github/workflows/build_wazuh_dashboard_with_plugins.yml @@ -40,6 +40,10 @@ on: description: 'Set production nomenclature' required: true default: false + upload: + description: "Upload ?" + type: boolean + default: true checksum: type: boolean description: 'Generate package checksum' @@ -76,6 +80,9 @@ on: type: boolean required: true default: false + upload: + type: boolean + default: true checksum: type: boolean required: true @@ -255,7 +262,15 @@ jobs: bash ./test-packages.sh \ -p ${{needs.setup-variables.outputs.PACKAGE_NAME}} + - uses: actions/upload-artifact@v3 + if: success() + with: + name: ${{ env.PACKAGE_NAME }} + path: ${{ env.CURRENT_DIR }}/dev-tools/build-packages/output/${{ inputs.system }}/${{env.PACKAGE_NAME}} + retention-days: 30 + - name: Set up AWS CLI + if: ${{ inputs.upload }} uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.CI_INTERNAL_DEVELOPMENT_BUCKET_USER_ACCESS_KEY }} @@ -263,6 +278,7 @@ jobs: aws-region: ${{ secrets.CI_AWS_REGION }} - name: Upload package + if: ${{ inputs.upload }} run: | echo "Uploading package" aws s3 cp ${{ needs.setup-variables.outputs.CURRENT_DIR }}/dev-tools/build-packages/output/${{ inputs.system }}/${{needs.setup-variables.outputs.PACKAGE_NAME}} s3://packages-dev.internal.wazuh.com/development/wazuh/4.x/main/packages/ @@ -270,7 +286,7 @@ jobs: echo "S3 URI: ${s3uri}" - name: Upload SHA512 - if: ${{ inputs.checksum }} + if: ${{ inputs.upload && inputs.checksum }} run: | echo "Uploading checksum" aws s3 cp ${{ needs.setup-variables.outputs.CURRENT_DIR }}/dev-tools/build-packages/output/${{ inputs.system }}/${{needs.setup-variables.outputs.PACKAGE_NAME}}.sha512 s3://packages-dev.internal.wazuh.com/development/wazuh/4.x/main/packages/