-
Notifications
You must be signed in to change notification settings - Fork 357
[jaeger] Add weekly workflow to auto-update Jaeger version from Docker Hub #665
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
Conversation
Co-authored-by: yurishkuro <[email protected]>
…ching, add version validation Co-authored-by: yurishkuro <[email protected]>
Co-authored-by: yurishkuro <[email protected]>
|
@copilot 1. Do not embed large scripts into the workflow, create them as standalone script under .github/scripts such that it can be tested invidually manually. env: |
…handle dry_run for cron Co-authored-by: yurishkuro <[email protected]>
Addressed in 6e5c042:
|
Signed-off-by: Yuri Shkuro <[email protected]>
What this PR does
Adds a new GitHub Actions workflow (
.github/workflows/update-jaeger-version.yaml) and standalone script (.github/scripts/update-jaeger-version.sh) that automatically checks for new Jaeger releases on Docker Hub and creates PRs to update the chart.Workflow behavior:
workflow_dispatchjaegertracing/jaeger:latestdigest against semantic version tagsappVersionincharts/jaeger/Chart.yamlappVersionto new versionversionminor (e.g.,4.0.0→4.1.0)jaegertracingbotaccountManual trigger options:
dry_runparameter: prints what changes would be made without creating PRImplementation details:
.github/scripts/update-jaeger-version.shcan be tested individuallysedfor YAML manipulation (no external dependencies like yq)dry_runparameter absence when running from cron (defaults tofalse)permissions: contents: readfor securityWhich issue this PR fixes
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format,will close that issue when PR gets merged)
Checklist
[jaeger]or[jaeger-operator])Original prompt
I want to create a new workflow that executes once a week, but can also be triggered manually (in which case it should accept a dry_run argument). It's objective is to:
versionfield in the chart to new minor versionThis is the prototype script to do steps 1-2. You need to add step 3, and the dry-run capability that will skip creating the PR and only print that a change is needed or not needed.
This is the prototype workflow job to create a PR using a bot account