We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如下:
vars: #公共全局变量 region: cn-hongkong service: test: "test-role" prod: "prod-role"
机器中的环境变量是 test 或 prod,我如何根据机器中的环境变量获取全局环境变量中对应的 role?
The text was updated successfully, but these errors were encountered:
目前vars还不支持嵌套写法。可以尝试维护两个test,prod文件,内容就是role字符串,然后使用${file}语法读取。比如:
${file}
... role: ${file(env('ENV'))} ...
Sorry, something went wrong.
No branches or pull requests
如下:
机器中的环境变量是 test 或 prod,我如何根据机器中的环境变量获取全局环境变量中对应的 role?
The text was updated successfully, but these errors were encountered: