Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the OCI registry update functionality #1511

Open
3 tasks
Tracked by #1536
thepetk opened this issue Apr 9, 2024 · 1 comment
Open
3 tasks
Tracked by #1536

Implement the OCI registry update functionality #1511

thepetk opened this issue Apr 9, 2024 · 1 comment
Labels
area/registry Devfile registry for stacks and infrastructure demo Issue or PR candidate for a demo at the end of the Sprint kind/task

Comments

@thepetk
Copy link
Contributor

thepetk commented Apr 9, 2024

/kind task

Which area/kind this issue is related to?

/area registry

Issue Description

The OCI registry should be up-to-date with the main branch of the provided env var registry repo URL. As a result, a task should be able to update the OCI registry artifacts whenever a trigger is sent to the webhook of the index/server.

The task should receive information about the:

  • commit_hash of the latest commit that we are updating the OCI registry.
  • the list of affected stacks that the task should look to update.

The task should update the content of the artifacts for the affected stacks and regenerate the index.json (with the new commit_hash inside).

Finally, a new endpoint should be created inside the index/server. This endpoint should only interact with github repo and trigger every new update of the oci-registry artifacts. Note that this endpoint should have an authentication method in order to be sure that the only requester will be the github repo.

Acceptance Criteria

@thepetk thepetk changed the title Implement the OCI registry update task Implement the OCI registry update functionality Apr 9, 2024
@thepetk thepetk added area/registry Devfile registry for stacks and infrastructure kind/task labels Apr 9, 2024
@johnmcollier johnmcollier added the demo Issue or PR candidate for a demo at the end of the Sprint label Apr 24, 2024
@thepetk
Copy link
Contributor Author

thepetk commented May 8, 2024

Note the webhook on the index/server should be able to support two types of triggers from github:

  1. Github sends a simple trigger to the webhook after a github event. The index/server checks the updated code for any affected stacks.
  2. Github sends a trigger with information about affected stack (need to decide the format) so index/server updates directly the given updated stacks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/registry Devfile registry for stacks and infrastructure demo Issue or PR candidate for a demo at the end of the Sprint kind/task
Projects
Status: Backlog
Development

No branches or pull requests

2 participants