Skip to content

Commit

Permalink
Use ko:// in e2e tests to exercices current code 🙃
Browse files Browse the repository at this point in the history
Right now, some examples are exercicing old version of the code, and
definitely never the changes that would be on the images in a PR.
Using `ko://` instead helps with that (e2e tests are using `ko` to
apply the samples).

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
  • Loading branch information
vdemeester committed Jul 6, 2020
1 parent 4bdeaa3 commit 1bad4b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -57,7 +57,7 @@ spec:
description: The precise commit SHA that was fetched by this Task
steps:
- name: clone
image: gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init:v0.12.1
image: ko://github.com/tektoncd/pipeline/cmd/git-init
script: |
CHECKOUT_DIR="$(workspaces.output.path)/$(params.subdirectory)"
Expand Down
4 changes: 2 additions & 2 deletions examples/v1beta1/pipelineruns/pipelinerun.yaml
Expand Up @@ -80,7 +80,7 @@ spec:
description: The precise commit SHA that was fetched by this Task
steps:
- name: clone
image: gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init:v0.11.0
image: ko://github.com/tektoncd/pipeline/cmd/git-init
script: |
CHECKOUT_DIR="$(workspaces.output.path)/$(params.subdirectory)"
cleandir() {
Expand Down Expand Up @@ -167,7 +167,7 @@ spec:
runAsUser: 0
- name: write-digest
workingDir: $(workspaces.source.path)
image: gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/imagedigestexporter:v0.11.1
image: ko://github.com/tektoncd/pipeline/cmd/imagedigestexporter
# output of imagedigestexport [{"name":"image","digest":"sha256:eed29..660"}]
command: ["/ko-app/imagedigestexporter"]
args:
Expand Down

0 comments on commit 1bad4b1

Please sign in to comment.