From 734457ded656702d36a8f57237ec32bcba23cc35 Mon Sep 17 00:00:00 2001 From: Taylor Silva Date: Tue, 2 Nov 2021 16:05:55 -0400 Subject: [PATCH] Add generic inputs and outputs tasks for mapping examples Signed-off-by: Taylor Silva --- tasks/generic-inputs.yml | 13 +++++++++++++ tasks/generic-outputs.yml | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 tasks/generic-inputs.yml create mode 100644 tasks/generic-outputs.yml diff --git a/tasks/generic-inputs.yml b/tasks/generic-inputs.yml new file mode 100644 index 0000000..b990717 --- /dev/null +++ b/tasks/generic-inputs.yml @@ -0,0 +1,13 @@ +platform: linux +image_resource: + type: mock + source: {mirror_self: true} + +inputs: +- name: main +- name: dev +- name: ci + +run: + path: ls + args: ["-lah"] diff --git a/tasks/generic-outputs.yml b/tasks/generic-outputs.yml new file mode 100644 index 0000000..55c99af --- /dev/null +++ b/tasks/generic-outputs.yml @@ -0,0 +1,18 @@ +platform: linux +image_resource: + type: mock + source: {mirror_self: true} + +outputs: +- name: main +- name: dev +- name: ci + +run: + path: sh + args: + - -c + - | + echo "hello-world" > main/version + echo "hey there dev" > dev/version + echo "hi ci" > ci/version