Justin Kotalik
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
14 additions and
1 deletions
-
docs/reference/schema.md
-
src/Microsoft.Tye.Core/ApplicationFactory.cs
-
src/Microsoft.Tye.Core/ConfigModel/ConfigService.cs
-
src/Microsoft.Tye.Core/Serialization/ConfigServiceParser.cs
-
src/schema/tye-schema.json
|
|
|
@ -216,6 +216,10 @@ A path to another tye.yaml to be used by the application. |
|
|
|
|
|
|
|
A reference to a repository that will be cloned and used by the application. By default, it is a string that would be passed after `git clone`. |
|
|
|
|
|
|
|
#### `cloneDirectory` (string) |
|
|
|
|
|
|
|
The directory to clone to. If unspecified, tye will clone into the .tye/deps relative to where tye is started. |
|
|
|
|
|
|
|
#### `azureFunction` (string) |
|
|
|
|
|
|
|
A path to a folder which contains an azure function project. |
|
|
|
|
|
|
|
@ -186,7 +186,7 @@ namespace Microsoft.Tye |
|
|
|
else if (!string.IsNullOrEmpty(configService.Repository)) |
|
|
|
{ |
|
|
|
// clone to .tye folder
|
|
|
|
var path = Path.Join(rootConfig.Source.DirectoryName, ".tye", "deps"); |
|
|
|
var path = configService.CloneDirectory ?? Path.Join(rootConfig.Source.DirectoryName, ".tye", "deps"); |
|
|
|
if (!Directory.Exists(path)) |
|
|
|
{ |
|
|
|
Directory.CreateDirectory(path); |
|
|
|
|
|
|
|
@ -44,5 +44,6 @@ namespace Microsoft.Tye.ConfigModel |
|
|
|
public string? FuncExecutable { get; set; } |
|
|
|
public string? Version { get; set; } |
|
|
|
public string? Architecture { get; set; } |
|
|
|
public string? CloneDirectory { get; internal set; } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -152,6 +152,9 @@ namespace Tye.Serialization |
|
|
|
case "pathToFunc": |
|
|
|
service.FuncExecutable = YamlParser.GetScalarValue(key, child.Value); |
|
|
|
break; |
|
|
|
case "cloneDirectory": |
|
|
|
service.CloneDirectory = YamlParser.GetScalarValue(key, child.Value); |
|
|
|
break; |
|
|
|
default: |
|
|
|
throw new TyeYamlException(child.Key.Start, CoreStrings.FormatUnrecognizedKey(key)); |
|
|
|
} |
|
|
|
|
|
|
|
@ -285,6 +285,11 @@ |
|
|
|
{ |
|
|
|
"description": "The repository url which will be cloned.", |
|
|
|
"type": "string" |
|
|
|
}, |
|
|
|
"cloneDirectory": |
|
|
|
{ |
|
|
|
"description": "The directory to clone the repository into.", |
|
|
|
"type": "string" |
|
|
|
} |
|
|
|
}, |
|
|
|
"required": [ |
|
|
|
|