Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script_artifact_passing example #598

Merged
merged 2 commits into from
Apr 26, 2023

Conversation

elliotgunton
Copy link
Collaborator

@elliotgunton elliotgunton commented Apr 26, 2023

Fixes #591 with a script example to mirror artifact_passing.py upstream example.

Will also be useful as an example of artifact passing noted in #595

@elliotgunton elliotgunton added semver:patch A change requiring a patch version bump type:documentation A documentation update labels Apr 26, 2023
@elliotgunton elliotgunton enabled auto-merge (squash) April 26, 2023 16:57
whalesay(name="generate-artifact")
print_message(
name="consume-artifact",
arguments=[Artifact(name="message", from_="{{steps.generate-artifact.outputs.artifacts.hello-art}}")],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this PR a nice opportunity to implement get_artifact on step/task? 🤔 The same way there is a get_parameter

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nvm, you created #595 exactly for that!

Copy link
Collaborator Author

@elliotgunton elliotgunton Apr 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to make a new PR where I'll do all the tasks in #595, and then the diff for the examples will show the changes from argo expressions to native hera 😄

@elliotgunton elliotgunton merged commit 85dc8c7 into argoproj-labs:main Apr 26, 2023
@elliotgunton elliotgunton deleted the script-artifact-passing branch May 26, 2023 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump type:documentation A documentation update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot create artifacts in scripts without using "outputs=[Artifact(...)]" in @script decorator
2 participants