-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new v2alpha4 version for PipelineRuns
This new version will now process the information from any associated StepAction from the executed PipelineRun. Also, the way chains read results from PipelineRuns to populate the `subjects` field is changing: now the user has to explicitly mark a result as a subject using an bject type-hinted tag (*ARTIFACT_OUTPUTS) + the new `isBuildArtifact` property in the value Refactors to share logic between v2alph3 and v2alpha4
- Loading branch information
1 parent
6395432
commit 12d8357
Showing
21 changed files
with
1,686 additions
and
277 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: tekton.dev/v1 | ||
kind: PipelineRun | ||
metadata: | ||
name: pipeline-test-run | ||
spec: | ||
pipelineSpec: | ||
results: | ||
- name: output1-ARTIFACT_OUTPUTS | ||
value: $(tasks.t1.results.output1) | ||
- name: output2-ARTIFACT_OUTPUTS | ||
value: $(tasks.t1.results.output2) | ||
tasks: | ||
- name: t1 | ||
taskSpec: | ||
results: | ||
- name: output1 | ||
type: object | ||
properties: | ||
uri: {} | ||
digest: {} | ||
isBuildArtifact: {} | ||
|
||
- name: output2 | ||
type: object | ||
properties: | ||
uri: {} | ||
digest: {} | ||
|
||
steps: | ||
- name: step1 | ||
image: busybox:glibc | ||
script: | | ||
echo -n "Hello!" | ||
echo -n "{\"uri\":\"gcr.io/foo/img1\", \"digest\":\"sha256:586789aa031fafc7d78a5393cdc772e0b55107ea54bb8bcf3f2cdac6c6da51ee\", \"isBuildArtifact\": \"true\" }" > $(results.output1.path) | ||
echo -n "{\"uri\":\"gcr.io/foo/img2\", \"digest\":\"sha256:586789aa031fafc7d78a5393cdc772e0b55107ea54bb8bcf3f2cdac6c6da51ee\"}" > $(results.output2.path) |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.