diff --git a/examples/taskruns/build-push-kaniko.yaml b/examples/taskruns/build-push-kaniko.yaml index 532d5f108a4..5d1bc0c6562 100644 --- a/examples/taskruns/build-push-kaniko.yaml +++ b/examples/taskruns/build-push-kaniko.yaml @@ -6,23 +6,7 @@ spec: type: image params: - name: url - value: gcr.io/christiewilson-catfactory/leeroy-web # Replace this URL with $KO_DOCKER_REPO ---- -# This demo modifies the cluster (deploys to it) you must use a service -# account with permission to admin the cluster (or make your default user an admin -# of the `default` namespace with default-cluster-admin. -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: default-cluster-admin -subjects: - - kind: ServiceAccount - name: default - namespace: default -roleRef: - kind: ClusterRole - name: cluster-admin - apiGroup: rbac.authorization.k8s.io + value: localhost:5000/leeroy-web --- apiVersion: tekton.dev/v1alpha1 kind: PipelineResource @@ -60,16 +44,15 @@ spec: steps: - name: build-and-push image: gcr.io/kaniko-project/executor:v0.9.0 - # specifying DOCKER_CONFIG is required to allow kaniko to detect docker credential - env: - - name: "DOCKER_CONFIG" - value: "/builder/home/.docker/" command: - /kaniko/executor args: - --dockerfile=$(inputs.params.pathToDockerFile) - --destination=$(outputs.resources.builtImage.url) - --context=$(inputs.params.pathToContext) + sidecars: + - image: registry + name: registry --- apiVersion: tekton.dev/v1alpha1 kind: TaskRun