-
Notifications
You must be signed in to change notification settings - Fork 23
Fix generating policies/dashboards images on non-tag CI builds #2697
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
Fix generating policies/dashboards images on non-tag CI builds #2697
Conversation
Issue: BB-734 Signed-off-by: Thomas Flament <thomas.flament@scality.com>
Hello delthas,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
|
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.
Pull request overview
This PR refactors the CI workflows to fix an issue with generating policies and dashboards images on non-tag builds by extracting duplicated ORAS push logic into a reusable composite GitHub Action.
Key changes:
- Created a new composite action
.github/actions/push-assetsthat consolidates ORAS installation and asset pushing logic - Removed duplicated code from both
release.yamlanddocker-build.yamlworkflows - Standardized the asset push process across both production and development builds
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/release.yaml |
Removed duplicated ORAS installation and asset push steps, replaced with call to new push-assets action using the release tag |
.github/workflows/docker-build.yaml |
Removed duplicated ORAS installation and asset push steps, replaced with call to new push-assets action using the git SHA |
.github/actions/push-assets/action.yml |
New composite action that encapsulates ORAS installation and pushing of dashboards and policies to container registry |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
@@ Coverage Diff @@
## development/9.1 #2697 +/- ##
===================================================
- Coverage 74.89% 74.65% -0.24%
===================================================
Files 200 200
Lines 13486 13486
===================================================
- Hits 10100 10068 -32
- Misses 3376 3408 +32
Partials 10 10
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/approve |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
The following options are set: approve |
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.
Side note : I believe we can do the exact same refactoring for the Cloudserver repository
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.
Couldn't find a similar workflow code duplication in cloudserver. Could you point to the duplicate part?
In the queueThe changeset has received all authorizations and has been added to the The changeset will be merged in:
The following branches will NOT be impacted:
There is no action required on your side. You will be notified here once IMPORTANT Please do not attempt to modify this pull request.
If you need this pull request to be removed from the queue, please contact a The following options are set: approve |
|
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue BB-734. Goodbye delthas. |
Issue: BB-734
See: https://github.com/scality/Zenko/actions/runs/20490200343/job/58880923664#step:8:7327