Is there a way to pass variables/files between workflows? #4364
Replies: 3 comments
-
Looks like you're looking for something like #2272? |
Beta Was this translation helpful? Give feedback.
-
You would need |
Beta Was this translation helpful? Give feedback.
-
Useful information. I suppose I'll go down the RWX PVC route for the moment. I don't love it as a permanent solution though. Manually created PV, then the efforts required to avoid race conditions or otherwise stomping on anything else that might be mounting that volume. #2272 looks like a better long term solution, but based on the last update, it's probably a longer wait. Thanks for the links! |
Beta Was this translation helpful? Give feedback.
-
An example.
My build step builds and tags my docker image, then pushes it out, then sends a discord message. All of this is currently within one workflow.
If i could pass either files or variables easily between workflows, I could break out a discord.yaml and a push.yaml. This would reduce the size of the main workflow file, while allowing these mostly standard code blocks to be simply copied to new projects as needed.
Ideally I'd like to either share an environment variable, or a volume. Given the limited data size (usually a string or two), either would be nice -- and easier than say uploading to s3, then having to figure out what I need to download from s3 for the next step. To be clear, this isn't trying to solve portability between steps in the same workflow, i have been following #2266 with that in mind. I'm looking for any way to get data from one workflow to another (that is using depends_on to be run after).
I'm running in kubernetes, via helm install.
Apologies if this has been asked before. I'm also happy to consider alternative mechanisms.
Thanks for reading this.
Beta Was this translation helpful? Give feedback.
All reactions