-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat: Generate OpenVX data for every release #2276
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,20 @@ | ||||||
name: openvex | ||||||
|
||||||
on: | ||||||
workflow_dispatch: | ||||||
push: | ||||||
tags: | ||||||
- 'v*.*.*' | ||||||
jobs: | ||||||
vexctl: | ||||||
runs-on: ubuntu-latest | ||||||
steps: | ||||||
- name: Checkout code | ||||||
uses: actions/checkout@v4 | ||||||
- name: Set environment variables | ||||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||||||
- uses: openvex/generate-vex@c59881b41451d7ccba5c3b74cd195382b8971fcd | ||||||
# Refer: https://github.com/openvex/vexctl#operational-model | ||||||
name: Run vexctl | ||||||
shafeeqes marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
with: | ||||||
product: pkg:golang/kubernetes/kube-state-metrics@${{ env.RELEASE_VERSION }} | ||||||
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.
Suggested change
should this be the golang package name? 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. 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. Why the v2? Is it not covered by the env? 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. v2 is because it expects the full name of the golang package. |
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.
I'm afraid running
openvex
for all releases would generate unnecessary noise, since we generally only maintain the latest release branches. Can we restrict this to that only? cc @mruegThere 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.
This is restricted only to a pushed tag. See line 7
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.
I think it might be better to run on release creation. https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
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.
+1, better to run on releases than tags.