Replies: 2 comments
-
The http template doesn't currently support artifact outputs.
However, you could accomplish the same thing using the http input artifact: apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: http-artifact-example-
spec:
entrypoint: download-http-artifact
templates:
- name: download-http-artifact
inputs:
artifacts:
- name: sample-text
path: /tmp/sample.txt
mode: 0644
http:
url: https://raw.githubusercontent.com/argoproj/argo-workflows/refs/heads/main/README.md
container:
image: alpine:3.14
command: [sh, -c]
args:
- |
echo "Contents of the downloaded file:"
cat /tmp/sample.txt
echo "File size:"
wc -c /tmp/sample.txt Reference: |
Beta Was this translation helpful? Give feedback.
0 replies
-
This sucks. Would love to use block storage instead of S3. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Considering this simple example:
How can I save the file as an artifact? Ideally it should be done in the same task.
Beta Was this translation helpful? Give feedback.
All reactions