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

Reduce Cloud Storage / Container Registry Spending #2157

Open
4 tasks
afrittoli opened this issue Sep 6, 2024 · 2 comments
Open
4 tasks

Reduce Cloud Storage / Container Registry Spending #2157

afrittoli opened this issue Sep 6, 2024 · 2 comments
Assignees

Comments

@afrittoli
Copy link
Member

afrittoli commented Sep 6, 2024

Steps to adopt ghcr.io

  • Make the list of regions configurable
  • Setup auth for ghcr.io
  • Add logic to link container images to projects
  • Update runtime resource with image registry values for ghcr.io
@afrittoli
Copy link
Member Author

afrittoli commented Sep 9, 2024

This will have to be done for various Tekton projects.
The set relevant for the tekton-releases project is:

For tekton-nightly there are more projects that publish images to gcr.io, however, the egress bandwidth for those is not significant (< 10% of tekton-releases).

afrittoli added a commit to afrittoli/triggers that referenced this issue Sep 26, 2024
As part of the work to reduce Tekton's infra spend, we are migrating
nightly builds and new releases from gcr.io to ghcr.io, to reduce the
expensive egress bandwith utilisation
(tektoncd/plumbing#2157).

This PR introduces support for publishing container images to ghcr.io
(YAML files are still published to Google Cloud storage). It also
replicates a few improvements that have been done in the pipeline
release pipeline before, such us:

- Support for hashing the image path (for nicer path in GitHub)
- Support for skipping build and test tasks, to be enabled for nightly
  builds to save CPU time

Signed-off-by: Andrea Frittoli <[email protected]>
afrittoli added a commit to afrittoli/triggers that referenced this issue Sep 26, 2024
As part of the work to reduce Tekton's infra spend, we are migrating
nightly builds and new releases from gcr.io to ghcr.io, to reduce the
expensive egress bandwith utilisation
(tektoncd/plumbing#2157).

This PR introduces support for publishing container images to ghcr.io
(YAML files are still published to Google Cloud storage). It also
replicates a few improvements that have been done in the pipeline
release pipeline before, such us:

- Support for hashing the image path (for nicer path in GitHub)
- Support for skipping build and test tasks, to be enabled for nightly
  builds to save CPU time

Signed-off-by: Andrea Frittoli <[email protected]>
tekton-robot pushed a commit to tektoncd/triggers that referenced this issue Sep 26, 2024
As part of the work to reduce Tekton's infra spend, we are migrating
nightly builds and new releases from gcr.io to ghcr.io, to reduce the
expensive egress bandwith utilisation
(tektoncd/plumbing#2157).

This PR introduces support for publishing container images to ghcr.io
(YAML files are still published to Google Cloud storage). It also
replicates a few improvements that have been done in the pipeline
release pipeline before, such us:

- Support for hashing the image path (for nicer path in GitHub)
- Support for skipping build and test tasks, to be enabled for nightly
  builds to save CPU time

Signed-off-by: Andrea Frittoli <[email protected]>
@afrittoli
Copy link
Member Author

Migrate catalog bundles to ghcr.io: #2220

afrittoli added a commit to afrittoli/tektoncd-chains that referenced this issue Oct 2, 2024
To reduce CI spending, we're in the process of moving all new
release to ghcr.io - tektoncd/plumbing#2157

This prepares the release pipeline for that switch (which will
require a PR in the plumbing repo).

This PR also aligns the pipeline with some other small improvements
already adopted by other projects:
- use remote resolution for tasks
- only run build and tests when requested - it will be disabled by
  default on nightly builds

Signed-off-by: Andrea Frittoli <[email protected]>
tekton-robot pushed a commit to tektoncd/chains that referenced this issue Oct 2, 2024
To reduce CI spending, we're in the process of moving all new
release to ghcr.io - tektoncd/plumbing#2157

This prepares the release pipeline for that switch (which will
require a PR in the plumbing repo).

This PR also aligns the pipeline with some other small improvements
already adopted by other projects:
- use remote resolution for tasks
- only run build and tests when requested - it will be disabled by
  default on nightly builds

Signed-off-by: Andrea Frittoli <[email protected]>
afrittoli added a commit to afrittoli/plumbing that referenced this issue Nov 12, 2024
Switch all CI/CD jobs from the plumbing images gcr.io/tekton-releases/dogfooding
to the plumbing images ghcr.io/tektoncd/plumbing.

Images have been copied over with crane, until the publish
template are updated. This PR has been generated with regex
search and replace.

Part of tektoncd#2157

Signed-off-by: Andrea Frittoli <[email protected]>
tekton-robot pushed a commit that referenced this issue Nov 12, 2024
Switch all CI/CD jobs from the plumbing images gcr.io/tekton-releases/dogfooding
to the plumbing images ghcr.io/tektoncd/plumbing.

Images have been copied over with crane, until the publish
template are updated. This PR has been generated with regex
search and replace.

Part of #2157

Signed-off-by: Andrea Frittoli <[email protected]>
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

No branches or pull requests

1 participant