-
Notifications
You must be signed in to change notification settings - Fork 43
Freshen pipeline definition from latest defaults #2370
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
Conversation
There are some small functional changes:
* Setting pipelinesascode.tekton.dev/cancel-in-progress: "true" for
pre-merge, and "false" for post-merge.
* Adding the image-digest param to the snyk task and removing the
digest from the image-url param value.
The other changes are not functionally consequential, but they make
it easier to compare the existing yaml to the newly generated yaml.
Useful vimdiff commands to review this change:
vimdiff +'set ft=yaml' .tekton/cli-main-ci-pull-request.yaml <(git show release-v0.6:.tekton/cli-v06-pull-request.yaml|yq '.spec.pipelineSpec={}')
vimdiff +'set ft=yaml' .tekton/cli-main-ci-push.yaml <(git show release-v0.6:.tekton/cli-v06-push.yaml|yq '.spec.pipelineSpec={}')
vimdiff +'set ft=yaml' .tekton/cli-build.yaml <(git show release-v0.6:.tekton/cli-v06-pull-request.yaml|yq '{"spec":.spec.pipelineSpec}')
Ref: https://issues.redhat.com/browse/EC-1135
ffe390d to
04fe457
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2370 +/- ##
=======================================
Coverage 72.92% 72.92%
=======================================
Files 89 89
Lines 7783 7783
=======================================
Hits 5676 5676
Misses 2107 2107
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
| - input: $(params.skip-checks) | ||
| operator: in | ||
| values: | ||
| - "false" |
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.
Not sure why the when and params swap locations, but this matches the current default pipeline.
| build.appstudio.redhat.com/commit_sha: '{{revision}}' | ||
| build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' | ||
| build.appstudio.redhat.com/target_branch: '{{target_branch}}' | ||
| pipelinesascode.tekton.dev/cancel-in-progress: "true" |
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.
This part is new and significant.
| This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization. | ||
| _Uses `buildah` to create a container image leveraging [trusted artifacts](https://konflux-ci.dev/architecture/ADR/0036-trusted-artifacts.html). It also optionally creates a source image and runs some build-time tests. Information is shared between tasks using OCI artifacts instead of PVCs. EC will pass the [`trusted_task.trusted`](https://enterprisecontract.dev/docs/ec-policies/release_policy.html#trusted_task__trusted) policy as long as all data used to build the artifact is generated from trusted tasks. | ||
| This pipeline is pushed as a Tekton bundle to [quay.io](https://quay.io/repository/konflux-ci/tekton-catalog/pipeline-docker-build-oci-ta?tab=tags)_ |
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.
Arguably the description isn't very useful, but let's add it to match the default.
| - name: dockerfile | ||
| value: Dockerfile.dist | ||
| - name: image-expires-after | ||
| value: 5d |
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.
Do we need double quotes? I didn't think so, but noticed it in other places.
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.
I think it's okay.
echo 'value: 5d' | yq -ojson
{
"value": "5d"
}
There are some small functional changes:
Setting pipelinesascode.tekton.dev/cancel-in-progress: "true" for pre-merge, and "false" for post-merge.
Adding the image-digest param to the snyk task and removing the digest from the image-url param value.
The other changes are not functionally consequential, but they make it easier to compare the existing yaml to the newly generated yaml.
Ref: https://issues.redhat.com/browse/EC-1135