On Wed, May 3, 2023 at 1:11 PM gemad@outlook.com wrote:
Hello,
I am using the deploy action to:download to download a file from http server and decompress it, I want to pass the path of which the file is decompressed to a user defined function in the device.jinja2,
Is there a way to do do so ? I this variable exposed somehow to the environment ?
I'm not sure there is a way to do it with deployment to download. You can do it with deployment to downloads (note the s at the end) and docker postprocessing. Alternatively you can deploy to flasher and set flasher_deploy_commands in the device dictionary. For example if you have a downloaded file in the job definition like this:
- deploy: to: flasher images: image: url: http://some.url
Then in device dictionary you'll have sth like this:
{% set flasher_deploy_commands = ['/path/to/your/script.sh {IMAGE}', '/some/other/command.sh'] %}
Best Regards, Milosz
Thanks _______________________________________________ Lava-users mailing list -- lava-users@lists.lavasoftware.org To unsubscribe send an email to lava-users-leave@lists.lavasoftware.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s