Zadig 文档
Zadig
教程
博客
论坛
关于
中文英文
Zadig
教程
博客
论坛
关于
Zadig v4.2
Loading...
     编辑文档
     反馈问题
     社区讨论

    本页导航

    Variable Passing in Workflows

    Workflows support various variables (project dimension, workflow dimension, task dimension) and can be freely passed between multiple tasks, workflows, and projects. This article uses a specific scenario to illustrate how to use them.

    # Background

    Use workflows to build deployment services, aiming to reflect more information in the built images, such as the version number the team is currently sprinting on.

    # How to Use

    1. Edit the workflow, add variable VERSION_INFO, set the value to Runtime Input, refer to Workflow Variables.
    1. Add custom variable VERSION_INFO to the build configuration and modify the build script. Before building the image, modify the value of variable IMAGE to connect it with VERSION_INFO, for example: export IMAGE=$IMAGE-$VERSION_INFO, refer to Custom Variables. Variable Passing

    2. Modify the variable configuration of the build task in the workflow, and use the workflow global variable {{.workflow.params.VERSION_INFO}} from the first step to assign it a value, refer to Build Task Variables.

    Variable Passing

    # Usage Effect

    When executing the workflow, specify the value of VERSION_INFO.

    For more variable passing usage patterns, refer to Variable Passing and Trigger Zadig Workflow.

    ← Workflow Deploy StrategyWorkflow Dynamic Variables→

    资源
    教程
    论坛
    博客
    公司
    关于
    客户故事
    加入我们
    联系我们
    微信扫一扫
    hello@koderover.com

    © 2026 筑栈(上海)信息技术有限公司 沪 ICP 备 19000177 号 - 1

    •  跟随系统
    •  浅色模式
    •  深色模式
    •  阅读模式