Open afrittoli opened 2 months ago
I would like to work on this.
@LiteBrick204 that's great, thank you - I assigned you to the issue. Please let me know if you have any question about the contribution process and/or the issue specifically.
@afrittoli I have done it for the other PRs as well. Need to update the template files alone.
Migrate the single-arch-template pipeline to publish to ghcr.io. This includes updates to any of the cronjobs that use this template to build images.
Thank you for the PR! Let me provide you with some more details about this:
The template part needs to be updated so that it may work with ghcr.io. The current version works with gcr.io, and unfortunately, it's not enough to change the target registry as authentication works a bit different (for gcr.io we used a service account file, and for ghcr.io we use a PAT), and ghcr.io requires OCI labels to be set
I think the order of implementation should be:
One more note on this. There are three types of builds we do today, which correspond to three separate templates:
PLATFORMS
and BUILD_TYPE
are not set in the cronjobdocker
: #2223, PLATFORMS
is set and BUILD_TYPE=docker
ko
: #2224, PLATFORMS
is set and BUILD_TYPE=ko
For the EasyCLA, I am waiting for approval. The site is not going through with it.
The credentials are the same for multi-arch build same as #2221 https://github.com/tektoncd/plumbing/blob/main/tekton/resources/images/docker-multi-arch-template.yaml#L92-L93
Feature request
Migrate the multi-arch-template pipeline to publish to ghcr.io. This includes updates to any of the cronjobs that use this template to build images.
Note: To be implemented as a separate PR: update references in the
plumbing
repo from gcr.io to ghcr.io once the new images are produced.The pipeline project release pipeline has been migrated and can provide some insight.
Some key information for the migration:
gcr.io/tekton-releases/dogfooding/<image-name>
ghcr.io/tektoncd/plumbing/<image-name>
Use case
Reduce Cloud Storage / Container Registry Spending: https://github.com/tektoncd/plumbing/issues/2157
Additional Info
The template part needs to be updated so that it may work with ghcr.io. The current version works with gcr.io, and unfortunately, it's not enough to change the target registry as authentication works a bit different (for gcr.io we used a service account file, and for ghcr.io we use a PAT), and ghcr.io requires OCI labels to be set
There are three types of builds we do today, which correspond to three separate templates.
This issue covers updating the template and cronjob for multi-architecture, with docker
The order of implementation should be: