Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 56 additions & 4 deletions azure-aro/specs/service-spec.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,47 @@
}
},
"type":"Control",
"scope":"#/properties/continuous_delivery/properties/mode"
},
{
"rule":{
"effect":"SHOW",
"condition":{
"type":"AND",
"conditions":[
{
"scope":"#/properties/continuous_delivery/properties/enabled",
"schema":{"const":true}
},
{
"scope":"#/properties/continuous_delivery/properties/mode",
"schema":{"const":"branch"}
}
]
}
},
"type":"Control",
"scope":"#/properties/continuous_delivery/properties/branches"
},
{
"rule":{
"effect":"SHOW",
"condition":{
"type":"AND",
"conditions":[
{
"scope":"#/properties/continuous_delivery/properties/enabled",
"schema":{"const":true}
},
{
"scope":"#/properties/continuous_delivery/properties/mode",
"schema":{"const":"release"}
}
]
}
},
"type":"Control",
"scope":"#/properties/continuous_delivery/properties/releases"
}
]
},
Expand Down Expand Up @@ -571,15 +611,21 @@
"type":"object",
"title":"Continuous Delivery",
"required":[
"enabled",
"branches"
"enabled"
],
"properties":{
"enabled":{
"type":"boolean",
"title":"Enable Continuous Delivery",
"default":false,
"description":"Automatically deploy new versions from specified branches"
"description":"Automatically deploy new versions from specified branches or releases"
},
"mode":{
"type":"string",
"title":"Mode",
"enum":["branch", "release"],
"default":"branch",
"description":"Deploy based on branch builds or release creation"
},
"branches":{
"type":"array",
Expand All @@ -591,9 +637,15 @@
"main"
],
"description":"Git branches to monitor for automatic deployment"
},
"releases":{
"type":"string",
"title":"Releases (Semver)",
"default":".*",
"description":"Semver regex pattern to match releases for automatic deployment (e.g., v\\d+\\.\\d+\\.\\d+)"
}
},
"description":"Configure automatic deployment from Git branches"
"description":"Configure automatic deployment from Git branches or releases"
},
"custom_domains": {
"type": "object",
Expand Down
60 changes: 56 additions & 4 deletions azure/specs/service-spec.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,47 @@
}
},
"type":"Control",
"scope":"#/properties/continuous_delivery/properties/mode"
},
{
"rule":{
"effect":"SHOW",
"condition":{
"type":"AND",
"conditions":[
{
"scope":"#/properties/continuous_delivery/properties/enabled",
"schema":{"const":true}
},
{
"scope":"#/properties/continuous_delivery/properties/mode",
"schema":{"const":"branch"}
}
]
}
},
"type":"Control",
"scope":"#/properties/continuous_delivery/properties/branches"
},
{
"rule":{
"effect":"SHOW",
"condition":{
"type":"AND",
"conditions":[
{
"scope":"#/properties/continuous_delivery/properties/enabled",
"schema":{"const":true}
},
{
"scope":"#/properties/continuous_delivery/properties/mode",
"schema":{"const":"release"}
}
]
}
},
"type":"Control",
"scope":"#/properties/continuous_delivery/properties/releases"
}
]
},
Expand Down Expand Up @@ -571,15 +611,21 @@
"type":"object",
"title":"Continuous Delivery",
"required":[
"enabled",
"branches"
"enabled"
],
"properties":{
"enabled":{
"type":"boolean",
"title":"Enable Continuous Delivery",
"default":false,
"description":"Automatically deploy new versions from specified branches"
"description":"Automatically deploy new versions from specified branches or releases"
},
"mode":{
"type":"string",
"title":"Mode",
"enum":["branch", "release"],
"default":"branch",
"description":"Deploy based on branch builds or release creation"
},
"branches":{
"type":"array",
Expand All @@ -591,9 +637,15 @@
"main"
],
"description":"Git branches to monitor for automatic deployment"
},
"releases":{
"type":"string",
"title":"Releases (Semver)",
"default":".*",
"description":"Semver regex pattern to match releases for automatic deployment (e.g., v\\d+\\.\\d+\\.\\d+)"
}
},
"description":"Configure automatic deployment from Git branches"
"description":"Configure automatic deployment from Git branches or releases"
},
"custom_domains": {
"type": "object",
Expand Down
60 changes: 56 additions & 4 deletions k8s/specs/service-spec.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,47 @@
}
},
"type":"Control",
"scope":"#/properties/continuous_delivery/properties/mode"
},
{
"rule":{
"effect":"SHOW",
"condition":{
"type":"AND",
"conditions":[
{
"scope":"#/properties/continuous_delivery/properties/enabled",
"schema":{"const":true}
},
{
"scope":"#/properties/continuous_delivery/properties/mode",
"schema":{"const":"branch"}
}
]
}
},
"type":"Control",
"scope":"#/properties/continuous_delivery/properties/branches"
},
{
"rule":{
"effect":"SHOW",
"condition":{
"type":"AND",
"conditions":[
{
"scope":"#/properties/continuous_delivery/properties/enabled",
"schema":{"const":true}
},
{
"scope":"#/properties/continuous_delivery/properties/mode",
"schema":{"const":"release"}
}
]
}
},
"type":"Control",
"scope":"#/properties/continuous_delivery/properties/releases"
}
]
},
Expand Down Expand Up @@ -571,15 +611,21 @@
"type":"object",
"title":"Continuous Delivery",
"required":[
"enabled",
"branches"
"enabled"
],
"properties":{
"enabled":{
"type":"boolean",
"title":"Enable Continuous Delivery",
"default":false,
"description":"Automatically deploy new versions from specified branches"
"description":"Automatically deploy new versions from specified branches or releases"
},
"mode":{
"type":"string",
"title":"Mode",
"enum":["branch", "release"],
"default":"branch",
"description":"Deploy based on branch builds or release creation"
},
"branches":{
"type":"array",
Expand All @@ -591,9 +637,15 @@
"main"
],
"description":"Git branches to monitor for automatic deployment"
},
"releases":{
"type":"string",
"title":"Releases (Semver)",
"default":".*",
"description":"Semver regex pattern to match releases for automatic deployment (e.g., v\\d+\\.\\d+\\.\\d+)"
}
},
"description":"Configure automatic deployment from Git branches"
"description":"Configure automatic deployment from Git branches or releases"
},
"custom_domains": {
"type": "object",
Expand Down
68 changes: 60 additions & 8 deletions scheduled_task/specs/service-spec.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,21 @@
"type": "string"
},
"continuous_delivery": {
"description": "Configure automatic deployment from Git branches",
"description": "Configure automatic deployment from Git branches or releases",
"properties": {
"enabled": {
"default": false,
"description": "Automatically deploy new versions from specified branches or releases",
"title": "Enable Continuous Delivery",
"type": "boolean"
},
"mode": {
"type": "string",
"title": "Mode",
"enum": ["branch", "release"],
"default": "branch",
"description": "Deploy based on branch builds or release creation"
},
"branches": {
"default": [
"main"
Expand All @@ -41,16 +54,15 @@
"title": "Branches",
"type": "array"
},
"enabled": {
"default": false,
"description": "Automatically deploy new versions from specified branches",
"title": "Enable Continuous Delivery",
"type": "boolean"
"releases": {
"type": "string",
"title": "Releases (Semver)",
"default": ".*",
"description": "Semver regex pattern to match releases for automatic deployment (e.g., v\\d+\\.\\d+\\.\\d+)"
}
},
"required": [
"enabled",
"branches"
"enabled"
],
"title": "Continuous Delivery",
"type": "object"
Expand Down Expand Up @@ -260,8 +272,48 @@
},
"effect": "SHOW"
},
"scope": "#/properties/continuous_delivery/properties/mode",
"type": "Control"
},
{
"rule": {
"condition": {
"type": "AND",
"conditions": [
{
"scope": "#/properties/continuous_delivery/properties/enabled",
"schema": {"const": true}
},
{
"scope": "#/properties/continuous_delivery/properties/mode",
"schema": {"const": "branch"}
}
]
},
"effect": "SHOW"
},
"scope": "#/properties/continuous_delivery/properties/branches",
"type": "Control"
},
{
"rule": {
"condition": {
"type": "AND",
"conditions": [
{
"scope": "#/properties/continuous_delivery/properties/enabled",
"schema": {"const": true}
},
{
"scope": "#/properties/continuous_delivery/properties/mode",
"schema": {"const": "release"}
}
]
},
"effect": "SHOW"
},
"scope": "#/properties/continuous_delivery/properties/releases",
"type": "Control"
}
],
"label": "Continuous deployment",
Expand Down