From d34c72db96045f3518fcc68155fc1cbc56d64e41 Mon Sep 17 00:00:00 2001 From: Christie Wilson Date: Wed, 23 Jan 2019 16:02:56 -0800 Subject: [PATCH] Update output examples to use new API (#320) --- examples/output-pipeline.yaml | 12 ++++++++++++ examples/run/output-pipeline-run.yaml | 17 +++-------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/examples/output-pipeline.yaml b/examples/output-pipeline.yaml index fdc96b6cf23..8a74b49d3d0 100644 --- a/examples/output-pipeline.yaml +++ b/examples/output-pipeline.yaml @@ -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] diff --git a/examples/run/output-pipeline-run.yaml b/examples/run/output-pipeline-run.yaml index 6e9140020d2..566df183ab2 100644 --- a/examples/run/output-pipeline-run.yaml +++ b/examples/run/output-pipeline-run.yaml @@ -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 \ No newline at end of file