isRemoteConfig checks if the main compose file is from a remote source (OCI or Git)
(dockerCli command.Cli, options buildOptions)
| 89 | |
| 90 | // isRemoteConfig checks if the main compose file is from a remote source (OCI or Git) |
| 91 | func isRemoteConfig(dockerCli command.Cli, options buildOptions) bool { |
| 92 | if len(options.ConfigPaths) == 0 { |
| 93 | return false |
| 94 | } |
| 95 | remoteLoaders := options.remoteLoaders(dockerCli) |
| 96 | for _, loader := range remoteLoaders { |
| 97 | if loader.Accept(options.ConfigPaths[0]) { |
| 98 | return true |
| 99 | } |
| 100 | } |
| 101 | return false |
| 102 | } |
| 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 { |