Replies: 1 comment
-
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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