Skip to content

Use regctl to read MW version label without pulling image#596

Merged
yaronkoren merged 1 commit intomasterfrom
regctl-mw-version
Mar 1, 2026
Merged

Use regctl to read MW version label without pulling image#596
yaronkoren merged 1 commit intomasterfrom
regctl-mw-version

Conversation

@cicalese
Copy link
Contributor

@cicalese cicalese commented Mar 1, 2026

Summary

  • Replace docker pull + docker inspect with regctl image config to extract the wiki.canasta.mediawiki.version label from CanastaBase
  • Reads the label directly from the registry manifest (~KB) instead of downloading the full ~700MB image, reducing the step from ~30s to a few seconds
  • Uses regclient (~1.7k stars, actively maintained), which handles registry auth and manifest negotiation internally — simpler and more robust than raw API calls

Closes #554

Replace docker pull + docker inspect with regctl image config to
extract the MW_VERSION label from CanastaBase. This reads the label
directly from the registry manifest (~KB) instead of downloading the
full ~700MB image, reducing the step from ~30s to a few seconds.
@github-actions
Copy link

github-actions bot commented Mar 1, 2026

🐳 The image based on 7f00903f commit has been built with 1.43.6-20260301-596 tag as ghcr.io/canastawiki/canasta:1.43.6-20260301-596

@cicalese
Copy link
Contributor Author

cicalese commented Mar 1, 2026

CI Results

The version extraction step dropped from 28s to <1s:

Step Before (master) After (this PR)
Install regctl N/A 1s
Extract MW_VERSION 28s <1s
Total 28s ~1s

This also eliminates downloading the ~700MB CanastaBase image on every CI run. The overall impact on the full master build (~16 min) is modest, but it removes unnecessary bandwidth and disk usage.

Copy link
Member

@yaronkoren yaronkoren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking forward to somewhat faster bulds!

@yaronkoren yaronkoren merged commit d894c3f into master Mar 1, 2026
2 checks passed
@yaronkoren yaronkoren deleted the regctl-mw-version branch March 1, 2026 23:53
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.

Consider using regclient/actions to fetch image labels without downloading image

2 participants