Changes to templates
parent
b342b4e386
commit
f10d20d51c
|
|
@ -1,6 +1,24 @@
|
||||||
{
|
{
|
||||||
"name": "golang",
|
"name": "golang",
|
||||||
"description": "golang build templates",
|
"description": "golang build templates",
|
||||||
|
"variables": [
|
||||||
|
{
|
||||||
|
"label": "Fully Qualified Host Name",
|
||||||
|
"source": "console",
|
||||||
|
"default": "",
|
||||||
|
"name": "Fdqn",
|
||||||
|
"type": "string",
|
||||||
|
"value": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Design domain",
|
||||||
|
"source": "console",
|
||||||
|
"default": "",
|
||||||
|
"name": "DesignDomain",
|
||||||
|
"type": "string",
|
||||||
|
"value": ""
|
||||||
|
}
|
||||||
|
],
|
||||||
"templates": [
|
"templates": [
|
||||||
{
|
{
|
||||||
"engine": "golang",
|
"engine": "golang",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
param (
|
param (
|
||||||
[string] $buildVersion = "latest",
|
[string] $buildVersion = "latest",
|
||||||
[string] $dockerRepo = "docker.io"
|
[string] $dockerRepo = "{ {.Repository.ImageName[docker]}}"
|
||||||
)
|
)
|
||||||
|
|
||||||
# This PowerShell command is for deploying the Qaskx-cli site
|
# This PowerShell command is for deploying the Qaskx-cli site
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,154 @@
|
||||||
{
|
{
|
||||||
"name": "Nothing new here"
|
"apis": [
|
||||||
|
{
|
||||||
|
"api": {
|
||||||
|
"category": "API",
|
||||||
|
"name": "OpenAPI",
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"format": "OpenAPI",
|
||||||
|
"guide": "",
|
||||||
|
"name": "replace me from template {{.DotQaskxConfig.GitBranch}}",
|
||||||
|
"release_id": "{{.HostName}}",
|
||||||
|
"service_id": "OpenAPI replace me",
|
||||||
|
"url": "^/specs/openapi.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"api": {
|
||||||
|
"category": "API",
|
||||||
|
"name": "AsyncAPI",
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"format": "AsyncAPI",
|
||||||
|
"guide": "",
|
||||||
|
"name": "replace me",
|
||||||
|
"release_id": "",
|
||||||
|
"service_id": "AsyncAPI replace me",
|
||||||
|
"url": "^/specs/asyncapi.json"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"asset": {
|
||||||
|
"id": "{{.AssetId}}",
|
||||||
|
"name": "{{.AssetName}}",
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"build": [
|
||||||
|
{
|
||||||
|
"activity": {
|
||||||
|
"category": "BUILD",
|
||||||
|
"name": "Lint",
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"config": "",
|
||||||
|
"guide": "",
|
||||||
|
"platform": "windows",
|
||||||
|
"script": ""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"activity": {
|
||||||
|
"category": "BUILD",
|
||||||
|
"name": "pwsh-script",
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"config": "",
|
||||||
|
"guide": "",
|
||||||
|
"platform": "windows",
|
||||||
|
"script": ""
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"created_on": "{{.CreatedOn}}",
|
||||||
|
"dependency": {
|
||||||
|
"apis": [
|
||||||
|
{
|
||||||
|
"api": {
|
||||||
|
"category": "API",
|
||||||
|
"name": "OpenAPI",
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"format": "OpenAPI",
|
||||||
|
"guide": "",
|
||||||
|
"name": "replace me",
|
||||||
|
"release_id": "",
|
||||||
|
"service_id": "replace me",
|
||||||
|
"url": ""
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"guide": "{{.Map.BusinessUnit}}",
|
||||||
|
"tools": [
|
||||||
|
{
|
||||||
|
"commands": [
|
||||||
|
"qaskx-cli"
|
||||||
|
],
|
||||||
|
"guide": "https://docs.qaskx.one/qaskx-cli/",
|
||||||
|
"playbook": "",
|
||||||
|
"service_id": "d81d3293-1795-4f89-8760-acc9a33365a8",
|
||||||
|
"tool": {
|
||||||
|
"category": "COMMAND",
|
||||||
|
"name": "qaskx-cli",
|
||||||
|
"url": "https://qaskx.one/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"deploy": [
|
||||||
|
{
|
||||||
|
"commands": {
|
||||||
|
"platform": "",
|
||||||
|
"script": ""
|
||||||
|
},
|
||||||
|
"deploy": {
|
||||||
|
"category": "DEPLOY",
|
||||||
|
"name": "rpm",
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"guide": "",
|
||||||
|
"playbook": ""
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"devops_version": "0.0.1",
|
||||||
|
"governance": {
|
||||||
|
"availability_rating": 5,
|
||||||
|
"cyber_rating": 5,
|
||||||
|
"data_classification": "PII-1",
|
||||||
|
"resiliency_rating": 5
|
||||||
|
},
|
||||||
|
"name": "{{.Name}}",
|
||||||
|
"organisation": "{{.Organisation}}",
|
||||||
|
"owner": {
|
||||||
|
"contacts": [
|
||||||
|
{
|
||||||
|
"address": "qaskx.slack.com",
|
||||||
|
"name": "SLACK"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"address": "@qaskx:qaskx.one",
|
||||||
|
"name": "MATRIX"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"email": "{{.OwnerEmail}}",
|
||||||
|
"name": "{{.OwnerName}}",
|
||||||
|
"web": "https://"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"source": {
|
||||||
|
"category": "SOURCE",
|
||||||
|
"name": "{{.VcsForge}}",
|
||||||
|
"url": "{{.VcsRepository}}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"test": [
|
||||||
|
{
|
||||||
|
"activity": {
|
||||||
|
"category": "TEST",
|
||||||
|
"name": "",
|
||||||
|
"url": ""
|
||||||
|
},
|
||||||
|
"config": "",
|
||||||
|
"guide": "",
|
||||||
|
"platform": "windows",
|
||||||
|
"script": ""
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"unique_id": "{{.UniqueId}}",
|
||||||
|
"updated_on": "{{.UpdatedOn}}"
|
||||||
}
|
}
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
{
|
{
|
||||||
"name": "docker-compose",
|
"name": "docker-compose",
|
||||||
"description": "deploy using ssh and docker compose",
|
"description": "deploy using ssh and docker compose for a refresh image not init/mofify setup",
|
||||||
"templates": [
|
"templates": [
|
||||||
{
|
{
|
||||||
"engine": "",
|
"engine": "",
|
||||||
"folder": "{{.SelfFolder}}/definitions/{{.TemplateName}}",
|
"folder": "{{.SelfFolder}}/definitions/{{.TemplateName}}",
|
||||||
"file_name": "deploy-remote.ps1",
|
"file_name": "deploy-remote.ps1",
|
||||||
"output_folder": "^/deploy",
|
"output_folder": "^/deploy",
|
||||||
"output_name": "deploy-remote.ps1"
|
"output_name": "deploy-remote-refresh.ps1"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
"folder": "{{.SelfFolder}}/definitions/{{.TemplateName}}",
|
"folder": "{{.SelfFolder}}/definitions/{{.TemplateName}}",
|
||||||
"file_name": "devops.json",
|
"file_name": "devops.json",
|
||||||
"output_folder": "^/.well-known",
|
"output_folder": "^/.well-known",
|
||||||
"output_name": "devops.yml"
|
"output_name": "devops.json"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue