Last active
May 9, 2020 01:17
-
-
Save idan/54eae8a93cbb677c78f67251d5be9217 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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