Skip to content

Commit

Permalink
Merge pull request #146 from ptr727/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
ptr727 authored Apr 12, 2024
2 parents c75be87 + 295cf76 commit d6bab91
Show file tree
Hide file tree
Showing 29 changed files with 663 additions and 362 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/BuildPublishPipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ jobs:
runs-on: ubuntu-latest

strategy:
# Keep building even if a job fails, helps with troubleshooting
fail-fast: false
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
matrix:
images: ${{ fromJson(needs.setmatrix.outputs.matrix).images }}
Expand Down
7 changes: 5 additions & 2 deletions CreateMatrix/CreateMatrix.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,14 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Newtonsoft.Json.Schema" Version="3.0.15" />
<PackageReference Include="JsonSchema.Net.Generation" Version="4.3.0" />
<PackageReference Include="Serilog" Version="3.1.1" />
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.1" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta4.22272.1" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="CreateMatrixTests" />
</ItemGroup>

</Project>
99 changes: 33 additions & 66 deletions CreateMatrix/JSON/Matrix.schema.json
Original file line number Diff line number Diff line change
@@ -1,79 +1,46 @@
{
"$schema": "https://json-schema.org/draft-06/schema",
"$id": "https://raw.githubusercontent.com/ptr727/NxWitness/main/CreateMatrix/JSON/Matrix.schema.json",
"title": "CreateMatrix Matrix Schema",
"definitions": {
"ImageInfo": {
"type": [
"object",
"null"
],
"properties": {
"Name": {
"type": [
"string",
"null"
]
},
"Branch": {
"type": [
"string",
"null"
]
},
"CacheScope": {
"type": [
"string",
"null"
]
},
"Tags": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
}
},
"Args": {
"type": [
"array",
"null"
],
"items": {
"type": [
"string",
"null"
]
"type": "object",
"properties": {
"Images": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Args": {
"$ref": "#/$defs/listOfString"
},
"Branch": {
"type": "string"
},
"CacheScope": {
"type": "string"
},
"Name": {
"type": "string"
},
"Tags": {
"$ref": "#/$defs/listOfString"
}
}
}
}
},
"type": "object",
"properties": {
},
"$schema": {
"type": [
"string",
"null"
]
"type": "string",
"readOnly": true
},
"SchemaVersion": {
"type": "integer",
"default": 0
},
"Images": {
"type": "integer"
}
},
"$defs": {
"listOfString": {
"type": "array",
"items": {
"$ref": "#/definitions/ImageInfo"
"type": "string"
}
}
},
"required": [
"Images"
]
"title": "CreateMatrix Matrix Schema",
"$id": "https://raw.githubusercontent.com/ptr727/NxWitness/main/CreateMatrix/JSON/Matrix.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema"
}
118 changes: 49 additions & 69 deletions CreateMatrix/JSON/Version.schema.json
Original file line number Diff line number Diff line change
@@ -1,80 +1,60 @@
{
"$schema": "https://json-schema.org/draft-06/schema",
"$id": "https://raw.githubusercontent.com/ptr727/NxWitness/main/CreateMatrix/JSON/Version.schema.json",
"title": "CreateMatrix Version Schema",
"definitions": {
"ProductInfo": {
"type": [
"object",
"null"
],
"properties": {
"Product": {},
"Versions": {
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/VersionInfo"
"type": "object",
"properties": {
"Products": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Product": {
"enum": [
"None",
"NxMeta",
"NxWitness",
"DWSpectrum"
]
},
"Versions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Labels": {
"type": "array",
"items": {
"enum": [
"None",
"Stable",
"Latest",
"Beta",
"RC"
]
}
},
"UriArm64": {
"type": "string"
},
"UriX64": {
"type": "string"
},
"Version": {
"type": "string"
}
}
}
}
}
}
},
"VersionInfo": {
"type": [
"object",
"null"
],
"properties": {
"Version": {
"type": [
"string",
"null"
]
},
"UriX64": {
"type": [
"string",
"null"
]
},
"UriArm64": {
"type": [
"string",
"null"
]
},
"Labels": {
"type": [
"array",
"null"
],
"items": {}
}
}
}
},
"type": "object",
"properties": {
"$schema": {
"type": [
"string",
"null"
]
"type": "string",
"readOnly": true
},
"SchemaVersion": {
"type": "integer",
"default": 0
},
"Products": {
"type": "array",
"items": {
"$ref": "#/definitions/ProductInfo"
}
"type": "integer"
}
},
"required": [
"Products"
]
"title": "CreateMatrix Version Schema",
"$id": "https://raw.githubusercontent.com/ptr727/NxWitness/main/CreateMatrix/JSON/Version.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema"
}
Loading

0 comments on commit d6bab91

Please sign in to comment.