-
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.
Adding pipelinerun attestations to e2e tests
- Loading branch information
Showing
13 changed files
with
828 additions
and
366 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,40 @@ | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: PipelineRun | ||
metadata: | ||
generateName: image-pipelinerun | ||
spec: | ||
params: | ||
- name: CHAINS-GIT_COMMIT | ||
value: my-git-commit | ||
- name: CHAINS-GIT_URL | ||
value: https://my-git-url | ||
pipelineSpec: | ||
results: | ||
- description: "" | ||
name: IMAGE_URL | ||
value: $(tasks.buildimage.results.IMAGE_URL) | ||
- description: "" | ||
name: IMAGE_DIGEST | ||
value: $(tasks.buildimage.results.IMAGE_DIGEST) | ||
tasks: | ||
- name: buildimage | ||
taskSpec: | ||
results: | ||
- name: IMAGE_URL | ||
type: string | ||
- name: IMAGE_DIGEST | ||
type: string | ||
steps: | ||
- image: bash:latest | ||
name: create-dockerfile | ||
resources: {} | ||
script: |- | ||
#!/usr/bin/env bash | ||
echo 'gcr.io/foo/bar' | tee $(results.IMAGE_URL.path) | ||
echo 'sha256:05f95b26ed10668b7183c1e2da98610e91372fa9f510046d4ce5812addad86b5' | tee $(results.IMAGE_DIGEST.path) | ||
volumeMounts: | ||
- mountPath: /dockerfile | ||
name: dockerfile | ||
volumes: | ||
- emptyDir: {} | ||
name: dockerfile |
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
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.