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

Prepare for publishing images to GHCR #3634

Merged
merged 4 commits into from
Sep 25, 2024

Conversation

AlanGreene
Copy link
Member

@AlanGreene AlanGreene commented Sep 23, 2024

Changes

Related to tektoncd/plumbing#2157 and tektoncd/plumbing#2202
Modelled after similar changes already made for tektoncd/pipeline

/kind misc

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Docs included if any changes are user facing
  • Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including
    functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user facing changes (new features, significant UI changes, API changes, bug fixes, changes requiring upgrade notices or deprecation warnings)
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

NONE

Regions are configurable in the publish task but one of the steps
ignored the config. Fix this and expose the `imageRegistryRegions`
param in the `Pipeline` so it can be provided by the `PipelineRun`.
WHen building the dashboard image with `ko`, add the OCI source label:

`org.opencontainers.image.source=https://$(params.package)`

This is generally useful, and in the case og ghcr.io it lets GitHub
automatically associate the container image with its source repo.
The current release pipeline assumes that the same credentials are
used to authenticate to the cloud storage service as well as to the
container registry.

This change enables having independent credentials. It also enables
user PAT based auth for the container registry by making the user
configurable instead of hardcoding `_json_key` which is used for gcr.
Add support for passing extra args to `ko` and move the existing
args `--preserve-import-paths` to be the default for the publish task.
This means we no longer need the `release` command in the installer
script as the `--preserve-import-paths` arg will be passed in from
the pipeline.

This change means that the pipeline can now control `ko` settings and
change the default path based on the registry.
@tekton-robot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@tekton-robot tekton-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. kind/misc Categorizes issue or PR as a miscellaneuous one. labels Sep 23, 2024
@AlanGreene AlanGreene marked this pull request as ready for review September 24, 2024 13:35
@tekton-robot tekton-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 24, 2024
@AlanGreene AlanGreene removed the request for review from skaegi September 24, 2024 13:36
Copy link
Contributor

@briangleeson briangleeson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Thanks for the walkthrough

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 25, 2024
@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: briangleeson

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 25, 2024
@tekton-robot tekton-robot merged commit 619cc10 into tektoncd:main Sep 25, 2024
7 of 8 checks passed
@AlanGreene AlanGreene deleted the ghcr_support branch September 25, 2024 10:26
@AlanGreene AlanGreene mentioned this pull request Sep 25, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/misc Categorizes issue or PR as a miscellaneuous one. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants