-
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
Merged
Merged
Om 191 #115
Changes from 3 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4173fc4
OM-191 - release artefacts
mphanias ca5b742
OM-191 - review feedback
mphanias c330236
OM-191 - review feedback
mphanias cc1ba8c
OM-191 - review feedback
mphanias 5ae4489
OM-191 - review feedback
mphanias 36d35ab
Minor updates to build_artefacts.yml
sunilvirus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Create tar.gz and zip artefacts of dashboars | ||
|
||
on: | ||
push: | ||
# branches: [master] | ||
# TODO this combination logic of branch + tag is not working. | ||
tags: | ||
- v* | ||
|
||
permissions: | ||
id-token: write | ||
actions: write | ||
contents: write | ||
|
||
jobs: | ||
tar_zipping_job: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions-ecosystem/action-get-latest-tag@v1 | ||
id: get-latest-tag | ||
|
||
- name: Create zip or tar files | ||
run: | | ||
cd config/grafana | ||
echo "Tar & GZipping tar files" | ||
VERSION=${GITHUB_REF_NAME#v} | ||
tar cvf aerospike-grafana-dashboards-$VERSION.tar dashboards/* | ||
gzip aerospike-grafana-dashboards* | ||
# zip -r aerospike-grafana-dashboards-$VERSION.zip dashboards/* | ||
# ls -lrt *.zip | ||
ls -lrt *.tar.gz | ||
- name: Upload Release Asset | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
TAG_NAME: "${{ steps.get-latest-tag.outputs.tag }}" | ||
run: | | ||
# 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 commentThe reason will be displayed to describe this comment to others. Learn more. You know the exact path. why find ? |
||
|
||
for file in $files; do | ||
echo "uploading file === $file to release-tag $TAG_NAME" | ||
gh release upload "$TAG_NAME" "$file" | ||
done | ||
|
||
echo | ||
echo "lising of files ... " | ||
echo |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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' ?