Skip to content

[WIP] chore: add schedule workflow to repush for push failed images. - #286

Draft
liangyuanpeng wants to merge 1 commit into
kcl-lang:mainfrom
liangyuanpeng:script_repush_notexist
Draft

[WIP] chore: add schedule workflow to repush for push failed images.#286
liangyuanpeng wants to merge 1 commit into
kcl-lang:mainfrom
liangyuanpeng:script_repush_notexist

Conversation

@liangyuanpeng

@liangyuanpeng liangyuanpeng commented Apr 21, 2025

Copy link
Copy Markdown
Contributor

1. Please confirm that you have read the document before PR submitted

releated:

2. Contact Information(Optional)

If it is convenient, please provide your contact information so we can reach you when processing the PR:

  • Email:
  • HomePage:

Signed-off-by: Lan Liang <gcslyp@gmail.com>
@liangyuanpeng
liangyuanpeng marked this pull request as draft April 21, 2025 05:48
@liangyuanpeng liangyuanpeng changed the title chore: add schedule workflow to repush for push failed images. [WIP] chore: add schedule workflow to repush for push failed images. Apr 21, 2025
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant