-
Notifications
You must be signed in to change notification settings - Fork 266
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
Conversation
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.
Skipping CI for Draft Pull Request. |
There was a problem hiding this 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
[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 |
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:
functionality, content, code)
/kind <type>
. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tepRelease Notes