我有一个在 Expo 中内置的 React Native 应用程序,它连接到 Rest API。其余 api 共有三种环境 - dev、uat 和 Production,如下(示例)。
dev = https://dev.myapi.com/api
uat = https://uat.myapi.com/api
prod = https://prod.myapi.com/api
Run Code Online (Sandbox Code Playgroud)
根据应用程序的使用位置,它需要连接到正确的环境。
Running in the Expo Client = Dev API
Running in TestFlight or Internal Testing for the Play Store = UAT API
Running in the App Store or Play Store = Production API
Run Code Online (Sandbox Code Playgroud)
实现这一目标的最简单方法是什么?
我需要将构建 id 参数从 Azure Devops 传递到 yaml 管道中的 dockerfile。不幸的是,Azure Devops 不支持 dockerbuild-args参数,如下所示。
请注意,如果您使用值 buildAndPush 作为命令参数,则arguments 属性将被忽略。 来源
还有其他方法可以将参数从 Azure Devops 传递到 dockerfile 吗?