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

[Backport 4.6.0] Create GitHub action to generate the packages (#67) #82

Merged
merged 2 commits into from
Aug 8, 2023

Conversation

yenienserrano
Copy link
Member

@yenienserrano yenienserrano commented Aug 7, 2023

Description

This PR aims to automate the production packages generation. This is done via a Github Action in the repository.
It takes some parameters as input:

  • Wazuh version: The version of Wazuh corresponding to the package to generate (for example, 4.4.0)
  • Wazuh revision: The revision of the packages to generate (for example, 2)
  • Wazuh app zip URL: The URL to the package of the Wazuh Plugin
  • Branch or tag of the security plugin repository: The tag or branch of wazuh/wazuh-security-dashboards-plugin from which the security plugin will be generated. If no input is provided, it will use the same name as the branch of the Dashboard on which the action is ran (for example, wz-init)

and automatically fetches the security plugin from its repository and generate a .tar.gz, a .deb and a .rpm
image

If the script ends successfully, it will generate 3 packages: a .tar.gz, a .deb and a .rpm, all of them containing the full Wazuh Dashboard including the security plugin.

image

Issues Resolved

#66

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
    • yarn test:ftr
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

@codecov-commenter
Copy link

codecov-commenter commented Aug 7, 2023

Codecov Report

❗ No coverage uploaded for pull request base (4.6.0@fa8fde5). Click here to learn what that means.
Patch has no changes to coverable lines.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@           Coverage Diff            @@
##             4.6.0      #82   +/-   ##
========================================
  Coverage         ?   66.36%           
========================================
  Files            ?     3229           
  Lines            ?    62103           
  Branches         ?     9615           
========================================
  Hits             ?    41212           
  Misses           ?    18570           
  Partials         ?     2321           
Flag Coverage Δ
Linux 66.28% <0.00%> (?)
Windows 66.31% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yenienserrano
Copy link
Member Author

Node.js has removed the domain mirrors.nodejs.org and their advertised download URL has been from nodejs.org for some time now.

opensearch-project#4556

@AlexRuiz7 AlexRuiz7 linked an issue Aug 8, 2023 that may be closed by this pull request
@AlexRuiz7 AlexRuiz7 changed the title [Backport 4.6.0]Create GitHub action to generate the packages (#67) [Backport 4.6.0] Create GitHub action to generate the packages (#67) Aug 8, 2023
@AlexRuiz7 AlexRuiz7 merged commit d5fc056 into 4.6.0 Aug 8, 2023
@AlexRuiz7 AlexRuiz7 deleted the 66-automate-the-packages-generation-460 branch August 8, 2023 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automate the packages generation
4 participants