Red Hat Konflux kflux-prd-rh03 update task-promote-npm-oci - #360
Open
red-hat-konflux-kflux-prd-rh03[bot] wants to merge 1 commit into
Open
Red Hat Konflux kflux-prd-rh03 update task-promote-npm-oci#360red-hat-konflux-kflux-prd-rh03[bot] wants to merge 1 commit into
red-hat-konflux-kflux-prd-rh03[bot] wants to merge 1 commit into
Conversation
Signed-off-by: red-hat-konflux-kflux-prd-rh03[bot] <206760901+red-hat-konflux-kflux-prd-rh03[bot]@users.noreply.github.com>
Reviewer's GuideAdds Konflux Pipelines-as-Code PipelineRun definitions for the task-promote-npm-oci component, defining build-and-scan pipelines for both pull_request and push events using the standard docker-build-oci-ta pipeline with trusted artifacts and security checks. Flow diagram for task-promote-npm-oci docker-build-oci-ta pipelineflowchart TD
Init[init]
Clone[clone-repository]
Prefetch[prefetch-dependencies]
Build[build-container]
Index[build-image-index]
Checks[(security and compliance checks)]
Apply[apply-tags]
PushDF[push-dockerfile]
Init --> Clone --> Prefetch --> Build --> Index
Index --> Checks
Index --> Apply --> PushDF
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- The pull-request and push PipelineRun definitions duplicate an almost identical
pipelineSpec; consider extracting the shared spec into a reusable template or base file to reduce drift and simplify future updates. - In the push PipelineRun,
image-expires-afteris only set via the innerpipelineSpecdefault and not at the top-levelspec.paramslike in the PR PipelineRun; double-check whether you intentionally want different image expiration behavior between PR and push builds.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The pull-request and push PipelineRun definitions duplicate an almost identical `pipelineSpec`; consider extracting the shared spec into a reusable template or base file to reduce drift and simplify future updates.
- In the push PipelineRun, `image-expires-after` is only set via the inner `pipelineSpec` default and not at the top-level `spec.params` like in the PR PipelineRun; double-check whether you intentionally want different image expiration behavior between PR and push builds.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pipelines as Code configuration proposal
To start the PipelineRun, add a new comment with content
/ok-to-testFor more detailed information about running a PipelineRun, please refer to Pipelines as Code documentation Running the PipelineRun
To customize the proposed PipelineRuns after merge, please refer to Build Pipeline customization
Please follow the block sequence indentation style introduced by the proprosed PipelineRuns YAMLs, or keep using consistent indentation level through your customized PipelineRuns. When different levels are mixed, it will be changed to the proposed style.
Summary by Sourcery
Add Tekton Pipelines-as-Code PipelineRuns for building and scanning the task-promote-npm-oci image on pull requests and pushes to main.
New Features: