Skip to content

Conversation

katexochen
Copy link
Contributor

Instead of building it every time, we can store the regorus
binary in OCI registry using oras and download it from there.
This reduces the install time from ~1m40s to ~15s.

This simplifies executing the workflow on a fork during testing.

Signed-off-by: Paul Meyer <katexochen0@gmail.com>
@katexochen
Copy link
Contributor Author

Could someone with permission please set the visibility of the pushed image to public?

@katexochen
Copy link
Contributor Author

katexochen commented Jun 17, 2025

Fails with

Error response from registry: denied: installation not allowed to Create organization package

I think we have to push the image once manually, then give the repository access to it: https://github.com/orgs/community/discussions/57724#discussioncomment-11598742

Image is

ghcr.io/kata-containers/kata-containers/regorus

No need to push the actual binary by hand, just retag an available image and push that.

@burgerdev
Copy link
Contributor

https://github.com/kata-containers/kata-containers/actions/runs/15822476154/job/44618292411?pr=11424#step:8:367

tests/static-checks.sh: line 1383: /home/runner/.cargo/bin/regorus: Permission denied

Looks like the execute bit is missing - probably only on cache hit?

Instead of building it every time, we can store the regorus
binary in OCI registry using oras and download it from there.
This reduces the install time from ~1m40s to ~15s.

Signed-off-by: Paul Meyer <katexochen0@gmail.com>
@katexochen katexochen force-pushed the p/regorus-oras-cache branch from 212d2c3 to 43739ce Compare June 24, 2025 11:14
@katexochen
Copy link
Contributor Author

https://github.com/kata-containers/kata-containers/actions/runs/15822476154/job/44618292411?pr=11424#step:8:367

tests/static-checks.sh: line 1383: /home/runner/.cargo/bin/regorus: Permission denied

Looks like the execute bit is missing - probably only on cache hit?

added a step to make it executable

@danmihai1 danmihai1 merged commit 2d43b3f into kata-containers:main Jun 24, 2025
681 of 715 checks passed
@katexochen katexochen deleted the p/regorus-oras-cache branch June 25, 2025 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants