-
Notifications
You must be signed in to change notification settings - Fork 31
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
Om 191 #115
Om 191 #115
Conversation
added github action to upload tar.gz and zip artefacts to release tag
kept only zip files ( & removed tar.gz files of dashboards) modified zip filename with pattern aerospike-grafana-dashboard-<version>.zip
updated artefact as tar.gz files
cd config/grafana | ||
echo "Tar & GZipping tar files" | ||
VERSION=${GITHUB_REF_NAME#v} | ||
tar cvf aerospike-grafana-dashboards-$VERSION.tar dashboards/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not single step with 'tar czf' ?
# echo "tag_name $TAG_NAME" | ||
echo | ||
|
||
files=$(find config/grafana -type f -name "aerospike-grafana-dashboards*" -printf "$(realpath -s %p) ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You know the exact path. why find ?
removed unnecessary code
unified tar and gzip in single step
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Final version looks good.
added GitHub action to create and upload aerospike-grafana-dashboards-$VERSION.tar.gz to GitHub release tags