Reformat all

This commit is contained in:
Kasra Bigdeli
2019-01-16 23:01:46 -08:00
parent fab96ad238
commit 9b8d75d061
15 changed files with 436 additions and 510 deletions

View File

@@ -1,17 +1,13 @@
{
"captainVersion": "1",
"documentation": "Taken from https://hub.docker.com/r/microsoft/vsts-agent/",
"dockerCompose":
{
"dockerCompose": {
"version": "3.3",
"services":
{
"$$cap_appname":
{
"services": {
"$$cap_appname": {
"image": "microsoft/vsts-agent:$$cap_vsts_version",
"restart": "always",
"environment":
{
"environment": {
"VSTS_ACCOUNT": "$$cap_vsts_account",
"VSTS_TOKEN": "$$cap_vsts_token",
"VSTS_AGENT": "$$cap_vsts_name",
@@ -20,39 +16,39 @@
}
}
},
"instructions":{
"start":"Official image for the Visual Studio Team Services (VSTS) agent.",
"end":"VSTS Agent is deployed and available as $$cap_appname"
"instructions": {
"start": "Official image for the Visual Studio Team Services (VSTS) agent.",
"end": "VSTS Agent is deployed and available as $$cap_appname"
},
"variables": [
{
"id": "$$cap_vsts_version",
"label": "VSTS Version Tag",
"description": "Checkout their docker page for the valid tags https://hub.docker.com/r/microsoft/vsts-agent/tags/",
"defaultValue": "latest",
"validRegex": "/^([a-zA-Z0-9-.])+$/"
},
{
"id": "$$cap_vsts_account",
"label": "VSTS Account",
"description": "The name of the Visual Studio account. Take only the account part from your address, e.g. http://{account}.visualstudio.com",
"validRegex": "/.{1,}/"
},
{
"id": "$$cap_vsts_token",
"label": "VSTS Token",
"description": "A personal access token (PAT) for the Visual Studio account that has been given at least the Agent Pools (read, manage) scope.",
"validRegex": "/.{1,}/"
},
{
"id": "$$cap_vsts_name",
"label": "VSTS Agent Name",
"validRegex": "/.{1,}/"
},
{
"id": "$$cap_vsts_pool",
"label": "VSTS Pool",
"validRegex": "/.{1,}/"
}]
"variables": [{
"id": "$$cap_vsts_version",
"label": "VSTS Version Tag",
"description": "Checkout their docker page for the valid tags https://hub.docker.com/r/microsoft/vsts-agent/tags/",
"defaultValue": "latest",
"validRegex": "/^([a-zA-Z0-9-.])+$/"
},
{
"id": "$$cap_vsts_account",
"label": "VSTS Account",
"description": "The name of the Visual Studio account. Take only the account part from your address, e.g. http://{account}.visualstudio.com",
"validRegex": "/.{1,}/"
},
{
"id": "$$cap_vsts_token",
"label": "VSTS Token",
"description": "A personal access token (PAT) for the Visual Studio account that has been given at least the Agent Pools (read, manage) scope.",
"validRegex": "/.{1,}/"
},
{
"id": "$$cap_vsts_name",
"label": "VSTS Agent Name",
"validRegex": "/.{1,}/"
},
{
"id": "$$cap_vsts_pool",
"label": "VSTS Pool",
"validRegex": "/.{1,}/"
}
]
}
}