Skip to content

Instantly share code, notes, and snippets.

@idan
Last active May 9, 2020 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save idan/54eae8a93cbb677c78f67251d5be9217 to your computer and use it in GitHub Desktop.
Save idan/54eae8a93cbb677c78f67251d5be9217 to your computer and use it in GitHub Desktop.
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: artifact-passing-
spec:
entrypoint: artifact-example
templates:
- name: artifact-example
steps:
- - name: generate-artifact
template: whalesay
# - - name: consume-artifact
# template: print-message
# arguments:
# artifacts:
# - name: message
# from: "{{steps.generate-artifact.outputs.artifacts.hello-art}}"
- name: whalesay
container:
image: alpine:latest
command: [sh, -c]
args: ["echo 'Hello world!' > /tmp/hello_world.txt"]
outputs:
artifacts:
- name: hello-art
path: /tmp/hello_world.txt
- name: print-message
inputs:
artifacts:
- name: message
path: /tmp/message
container:
image: alpine:latest
command: [sh, -c]
args: ["cat /tmp/message"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment