[WIP] chore: add schedule workflow to repush for push failed images. - #286
Draft
liangyuanpeng wants to merge 1 commit into
Draft
[WIP] chore: add schedule workflow to repush for push failed images.#286liangyuanpeng wants to merge 1 commit into
liangyuanpeng wants to merge 1 commit into
Conversation
Signed-off-by: Lan Liang <gcslyp@gmail.com>
liangyuanpeng
marked this pull request as draft
April 21, 2025 05:48
3 tasks
Peefy
added a commit
that referenced
this pull request
Aug 30, 2026
…ixes #273) (#402) The per-PR publish workflow in update_metadata.yaml has been observed to fail silently for some merges (k8s 1.32, several others per issue #273), leaving the repo out of sync with the registry. - scripts/repush_not_exist.sh: scans every kcl.mod outside .git/scripts, parses [package] name/version, HEAD-checks ghcr.io/kcl-lang for the manifest, and calls push_pkg_from.sh for any package that returns 404. Skips on transport errors to avoid false-positive repushes; writes a $GITHUB_STEP_SUMMARY report and exits non-zero if any push fails. - .github/workflows/scheduled-republish.yml: nightly cron (03:17 UTC) plus manual dispatch. Uses the existing DEPLOY_ACCESS_* secrets to authenticate against ghcr.io. Concurrency group ensures only one run at a time. The 22-line script in PR #286 is replaced wholesale because the original hard-coded ghcr.io + oras and used a brittle find-depth that missed most kcl.mod files in the repo. Co-authored-by: timi <timi@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
1. Please confirm that you have read the document before PR submitted
releated:
Some modules were uploaded to the repository but not pushed to the registry. #273
Yes, I have read THIS NOTE DOC.
2. Contact Information(Optional)
If it is convenient, please provide your contact information so we can reach you when processing the PR: