checksForRemoteStack handles environment variable prompts for remote configurations
(ctx context.Context, dockerCli command.Cli, project *types.Project, options buildOptions, assumeYes bool, cmdEnvs []string)
| 103 | |
| 104 | // checksForRemoteStack handles environment variable prompts for remote configurations |
| 105 | func checksForRemoteStack(ctx context.Context, dockerCli command.Cli, project *types.Project, options buildOptions, assumeYes bool, cmdEnvs []string) error { |
| 106 | if !isRemoteConfig(dockerCli, options) { |
| 107 | return nil |
| 108 | } |
| 109 | if metrics, ok := ctx.Value(tracing.MetricsKey{}).(tracing.Metrics); ok && metrics.CountIncludesRemote > 0 { |
| 110 | if err := confirmRemoteIncludes(dockerCli, options, assumeYes); err != nil { |
| 111 | return err |
| 112 | } |
| 113 | } |
| 114 | displayLocationRemoteStack(dockerCli, project, options) |
| 115 | return promptForInterpolatedVariables(ctx, dockerCli, options.ProjectOptions, assumeYes, cmdEnvs) |
| 116 | } |
| 117 | |
| 118 | // Prepare the values map and collect all variables info |
| 119 | type varInfo struct { |
no test coverage detected