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

Improve layout of the release artifact. #202

Merged
merged 3 commits into from
Jun 7, 2023

Conversation

maxlambrecht
Copy link
Contributor

@maxlambrecht maxlambrecht commented Jun 6, 2023

Pull request check list

  • Proper tests/regressions included?
  • Documentation updated?

Affected functionality

Description of change

Change the build_artifacts script to enhance the structure of the generated tarball. The improved layout is designed to make the contents more organized and intuitive for users.

The new tarball structure is:

galadriel-{version}: This is the root directory within the tarball. The version of the Galadriel build is reflected in the directory name to aid version identification.

  • bin/: This directory contains all the binary files resulting from the build process.
  • conf/: This directory holds all configuration files.
  • LICENSE: This is the license file for Galadriel.

This PR also refines build_artifacts.sh by introducing separate functions for tarball creation and artifact building, improving variable names, and optimizing variable assignments.

Which issue this pull requests fixes

Signed-off-by: Max Lambrecht <[email protected]>
if [[ "$GITHUB_REF" =~ ^refs/tags/v[0-9.]+$ ]]; then
echo "${GITHUB_REF##refs/tags/v}"
else
echo ""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have empty tags ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the error handling.

Signed-off-by: Max Lambrecht <[email protected]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jun 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@maxlambrecht maxlambrecht merged commit 851ca28 into HewlettPackard:main Jun 7, 2023
@maxlambrecht maxlambrecht deleted the fix-build-artifact branch June 7, 2023 15:42
maxlambrecht pushed a commit that referenced this pull request Jun 7, 2023
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.

2 participants