Skip to content

Commit

Permalink
Update output examples to use new API (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobcatfish authored and knative-prow-robot committed Jan 24, 2019
1 parent b2732f3 commit d34c72d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
12 changes: 12 additions & 0 deletions examples/output-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,25 @@ kind: Pipeline
metadata:
name: output-pipeline
spec:
resources:
- name: source-repo
type: git
tasks:
- name: first-create-file # 1. create file
taskRef:
name: create-file
resources:
inputs:
- name: workspace
resource: source-repo
outputs:
- name: workspace
resource: source-repo
- name: then-check # 2. check file exists
taskRef:
name: check-stuff-file-exists
resources:
inputs:
- name: workspace
resource: source-repo
providedBy: [first-create-file]
17 changes: 3 additions & 14 deletions examples/run/output-pipeline-run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ spec:
type: 'gcs'
url: 'gcs://somebucket/results/logs'
resources:
- name: first-create-file
inputs:
- name: workspace
resourceRef:
name: skaffold-git
outputs:
- name: workspace
resourceRef:
name: skaffold-git
- name: then-check
inputs:
- name: workspace
resourceRef:
name: skaffold-git
- name: source-repo
resourceRef:
name: skaffold-git

0 comments on commit d34c72d

Please sign in to comment.