Is it possible to store an artifact of an http template response? #11383
Unanswered
aguerrero232
asked this question in
Q&A
Replies: 1 comment
-
The
However, this is possible using the http input artifact. This is a basic functional workflow demonstrating http input artifact usage: apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: http-artifact-example-
spec:
entrypoint: download-http-artifact
templates:
- name: download-http-artifact
inputs:
artifacts:
- name: readme-text
path: /tmp/readme.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/readme.txt
echo "File size:"
wc -c /tmp/readme.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
Uh oh!
There was an error while loading. Please reload this page.
-
Something like this?
Beta Was this translation helpful? Give feedback.
All reactions