Skip to content

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

@tosfos

Description

@tosfos

Background

In PR #552, we optimized the MW version extraction workflow from ~4 minutes to ~30 seconds by using labels from the CanastaBase image. However, @vedmaka suggested in PR #552 review a further optimization.

Current Implementation

The workflow currently:

  1. Builds a temporary Docker image
  2. Runs it to extract MW_CORE_VERSION from environment variables
  3. Takes ~30 seconds

Suggested Improvement

Use regclient/actions to fetch labels directly from the base image manifest without downloading the entire image. This would:

  • Be faster (no image download)
  • Use less bandwidth
  • Be more efficient overall

Considerations

  • regclient/actions is an external third-party action (not a standard GitHub feature)
  • The action has low adoption (7 stars on GitHub)
  • Current solution is already well-optimized at ~30 seconds
  • Would add a dependency on an external action

Decision Needed

Should we:

  1. Implement this optimization now?
  2. Keep it as a future enhancement?
  3. Reject it due to external dependency concerns?

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions