Skip to content

Commit

Permalink
Use dogfooding ko image during release and nightly 🌞
Browse files Browse the repository at this point in the history
No more need to build it at release time.

Signed-off-by: Vincent Demeester <[email protected]>
  • Loading branch information
vdemeester authored and tekton-robot committed Dec 4, 2019
1 parent f85c53f commit 5af2878
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 122 deletions.
78 changes: 0 additions & 78 deletions tekton/ci-images.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion tekton/publish-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ spec:
- name: run-ko
# TODO(#639) we should be able to use the image built by an upstream Task here instead of hardcoding
image: gcr.io/tekton-nightly/ko-ci
# FIXME(vdemeester) use a tagged version once 0.2 is released
image: gcr.io/tekton-releases/dogfooding/ko:latest
env:
- name: KO_DOCKER_REPO
value: ${inputs.params.imageRegistry}
Expand Down
3 changes: 2 additions & 1 deletion tekton/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ spec:

- name: run-ko
# TODO(#639) we should be able to use the image built by an upstream Task here instead of hardcoding
image: gcr.io/tekton-releases/ko-ci
# FIXME(vdemeester) use a tagged version once 0.2 is released
image: gcr.io/tekton-releases/dogfooding/ko:latest
env:
- name: KO_DOCKER_REPO
value: $(inputs.params.imageRegistry)
Expand Down
33 changes: 1 addition & 32 deletions tekton/release-pipeline-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ spec:
type: git
- name: bucket
type: storage
- name: builtKoImage
type: image
- name: builtBaseImage
type: image
- name: builtEntrypointImage
Expand All @@ -38,21 +36,7 @@ spec:
- name: builtGcsFetcherImage
type: image
tasks:
- name: publish-ko-image
taskRef:
name: publish-ci-images
params:
- name: imageRegistry
value: ${params.imageRegistry}
resources:
inputs:
- name: source
resource: source-repo
outputs:
- name: builtKoImage
resource: builtKoImage
- name: publish-images
runAfter: [publish-ko-image]
taskRef:
name: publish-tekton-pipelines-nightly
params:
Expand Down Expand Up @@ -108,8 +92,6 @@ spec:
type: git
- name: bucket
type: storage
- name: builtKoImage
type: image
- name: builtBaseImage
type: image
- name: builtEntrypointImage
Expand Down Expand Up @@ -167,21 +149,8 @@ spec:
inputs:
- name: source
resource: source-repo
- name: publish-ko-image
taskRef:
name: publish-ci-images-triggers
params:
- name: imageRegistry
value: $(params.imageRegistry)
resources:
inputs:
- name: source
resource: source-repo
outputs:
- name: builtKoImage
resource: builtKoImage
- name: publish-images
runAfter: [publish-ko-image, build, unit-tests]
runAfter: [build, unit-tests]
taskRef:
name: publish-tekton-pipelines
params:
Expand Down
10 changes: 0 additions & 10 deletions tekton/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@ spec:
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: ko-image
spec:
type: image
params:
- name: url
value: ko-ci # Registry is provided via parameter, this is a hack see #569
---
apiVersion: tekton.dev/v1alpha1
kind: PipelineResource
metadata:
name: base-image
spec:
Expand Down

0 comments on commit 5af2878

Please sign in to comment.