Skip to content

Instantly share code, notes, and snippets.

@Iridias
Created February 2, 2021 16:41
Show Gist options
  • Save Iridias/26042d8702d990b092b7e58be4cfe14a to your computer and use it in GitHub Desktop.
Save Iridias/26042d8702d990b092b7e58be4cfe14a to your computer and use it in GitHub Desktop.
{
"source": "undefined",
"revision": 1,
"description": null,
"isDeleted": false,
"variables": {},
"variableGroups": [],
"environments": [
{
"name": "Stage 1",
"variables": {},
"variableGroups": [],
"preDeployApprovals": {
"approvals": [
{
"rank": 1,
"isAutomated": true,
"isNotificationOn": false,
"id": 40
}
],
"approvalOptions": {
"requiredApproverCount": null,
"releaseCreatorCanBeApprover": false,
"autoTriggeredAndPreviousEnvironmentApprovedCanBeSkipped": false,
"enforceIdentityRevalidation": false,
"timeoutInMinutes": 0,
"executionOrder": 1
}
},
"postDeployApprovals": {
"approvals": [
{
"rank": 1,
"isAutomated": true,
"isNotificationOn": false,
"id": 42
}
],
"approvalOptions": {
"requiredApproverCount": null,
"releaseCreatorCanBeApprover": false,
"autoTriggeredAndPreviousEnvironmentApprovedCanBeSkipped": false,
"enforceIdentityRevalidation": false,
"timeoutInMinutes": 0,
"executionOrder": 2
}
},
"deployPhases": [
{
"deploymentInput": {
"parallelExecution": {
"parallelExecutionType": "none"
},
"agentSpecification": {
"identifier": "ubuntu-20.04"
},
"skipArtifactsDownload": false,
"artifactsDownloadInput": {},
"demands": [],
"enableAccessToken": false,
"timeoutInMinutes": 0,
"jobCancelTimeoutInMinutes": 1,
"condition": "succeeded()",
"overrideInputs": {}
},
"rank": 1,
"phaseType": "agentBasedDeployment",
"name": "Agent job",
"workflowTasks": [
{
"environment": {},
"taskId": "1e244d32-2dd4-4165-96fb-b7441ca9331e",
"version": "1.*",
"name": "Azure Key Vault: wordpress-cloud-keyvault",
"refName": "",
"enabled": true,
"alwaysRun": false,
"continueOnError": false,
"timeoutInMinutes": 0,
"definitionType": "task",
"overrideInputs": {},
"condition": "succeeded()",
"inputs": {
"ConnectedServiceName": "REPLACEME_WITH_CORRECT_ID",
"KeyVaultName": "wordpress-cloud-keyvault",
"SecretsFilter": "*",
"RunAsPreJob": "false"
}
},
{
"environment": {},
"taskId": "a8515ec8-7254-4ffd-912c-86772e2b5962",
"version": "3.*",
"name": "Replace tokens in **/secret.yaml",
"refName": "",
"enabled": true,
"alwaysRun": false,
"continueOnError": false,
"timeoutInMinutes": 0,
"definitionType": "task",
"overrideInputs": {},
"condition": "succeeded()",
"inputs": {
"rootDirectory": "",
"targetFiles": "**/secret.yaml",
"encoding": "auto",
"writeBOM": "true",
"escapeType": "auto",
"escapeChar": "",
"charsToEscape": "",
"verbosity": "normal",
"actionOnMissing": "warn",
"keepToken": "false",
"tokenPrefix": "#{",
"tokenSuffix": "}#",
"useLegacyPattern": "false",
"emptyValue": "(empty)",
"variableFiles": "",
"variableSeparator": ".",
"enableTelemetry": "false"
}
},
{
"environment": {},
"taskId": "cbc316a2-586f-4def-be79-488a1f503564",
"version": "1.*",
"name": "kubectl ensure namespace",
"refName": "",
"enabled": true,
"alwaysRun": false,
"continueOnError": false,
"timeoutInMinutes": 0,
"definitionType": "task",
"overrideInputs": {},
"condition": "succeeded()",
"inputs": {
"connectionType": "Azure Resource Manager",
"kubernetesServiceEndpoint": "",
"azureSubscriptionEndpoint": "REPLACEME_WITH_CORRECT_ID",
"azureResourceGroup": "REPLACEME_WITH_CORRECT_RESOURCEGROUP",
"kubernetesCluster": "REPLACEME_WITH_CORRECT_CLUSTER",
"useClusterAdmin": "false",
"namespace": "",
"command": "apply",
"useConfigurationFile": "true",
"configurationType": "inline",
"configuration": "",
"inline": "apiVersion: v1\nkind: Namespace\nmetadata:\n name: wordpress-cloud\nspec:\n finalizers:\n - kubernetes\nstatus:\n phase: Active\n",
"arguments": "",
"secretType": "dockerRegistry",
"secretArguments": "",
"containerRegistryType": "Azure Container Registry",
"dockerRegistryEndpoint": "",
"azureSubscriptionEndpointForSecrets": "",
"azureContainerRegistry": "",
"secretName": "",
"forceUpdate": "true",
"configMapName": "",
"forceUpdateConfigMap": "false",
"useConfigMapFile": "false",
"configMapFile": "",
"configMapArguments": "",
"versionOrLocation": "version",
"versionSpec": "1.13.2",
"checkLatest": "false",
"specifyLocation": "",
"cwd": "$(System.DefaultWorkingDirectory)",
"outputFormat": "json"
}
},
{
"environment": {},
"taskId": "cbc316a2-586f-4def-be79-488a1f503564",
"version": "1.*",
"name": "kubectl apply",
"refName": "",
"enabled": true,
"alwaysRun": false,
"continueOnError": false,
"timeoutInMinutes": 0,
"definitionType": "task",
"overrideInputs": {},
"condition": "succeeded()",
"inputs": {
"connectionType": "Azure Resource Manager",
"kubernetesServiceEndpoint": "",
"azureSubscriptionEndpoint": "REPLACEME_WITH_CORRECT_ID",
"azureResourceGroup": "REPLACEME_WITH_CORRECT_RESOURCEGROUP",
"kubernetesCluster": "REPLACEME_WITH_CORRECT_CLUSTER",
"useClusterAdmin": "false",
"namespace": "wordpress-cloud",
"command": "apply",
"useConfigurationFile": "true",
"configurationType": "configuration",
"configuration": "$(System.DefaultWorkingDirectory)/_wp-SITENAME-k8s",
"inline": "",
"arguments": "",
"secretType": "dockerRegistry",
"secretArguments": "",
"containerRegistryType": "Azure Container Registry",
"dockerRegistryEndpoint": "",
"azureSubscriptionEndpointForSecrets": "",
"azureContainerRegistry": "",
"secretName": "",
"forceUpdate": "true",
"configMapName": "",
"forceUpdateConfigMap": "false",
"useConfigMapFile": "false",
"configMapFile": "",
"configMapArguments": "",
"versionOrLocation": "version",
"versionSpec": "1.13.2",
"checkLatest": "false",
"specifyLocation": "",
"cwd": "$(System.DefaultWorkingDirectory)",
"outputFormat": "json"
}
},
{
"environment": {},
"taskId": "cbc316a2-586f-4def-be79-488a1f503564",
"version": "1.*",
"name": "kubectl rollout",
"refName": "",
"enabled": true,
"alwaysRun": false,
"continueOnError": false,
"timeoutInMinutes": 0,
"definitionType": "task",
"overrideInputs": {},
"condition": "succeeded()",
"inputs": {
"connectionType": "Azure Resource Manager",
"kubernetesServiceEndpoint": "",
"azureSubscriptionEndpoint": "REPLACEME_WITH_CORRECT_ID",
"azureResourceGroup": "REPLACEME_WITH_CORRECT_RESOURCEGROUP",
"kubernetesCluster": "REPLACEME_WITH_CORRECT_CLUSTER",
"useClusterAdmin": "false",
"namespace": "wordpress-cloud",
"command": "rollout",
"useConfigurationFile": "false",
"configurationType": "configuration",
"configuration": "",
"inline": "",
"arguments": "restart deployment/wp-SITEID",
"secretType": "dockerRegistry",
"secretArguments": "",
"containerRegistryType": "Azure Container Registry",
"dockerRegistryEndpoint": "",
"azureSubscriptionEndpointForSecrets": "",
"azureContainerRegistry": "",
"secretName": "",
"forceUpdate": "true",
"configMapName": "",
"forceUpdateConfigMap": "false",
"useConfigMapFile": "false",
"configMapFile": "",
"configMapArguments": "",
"versionOrLocation": "version",
"versionSpec": "1.13.2",
"checkLatest": "false",
"specifyLocation": "",
"cwd": "$(System.DefaultWorkingDirectory)",
"outputFormat": "json"
}
}
]
}
],
"environmentOptions": {
"emailNotificationType": "OnlyOnFailure",
"emailRecipients": "release.environment.owner;release.creator",
"skipArtifactsDownload": false,
"timeoutInMinutes": 0,
"enableAccessToken": false,
"publishDeploymentStatus": false,
"badgeEnabled": false,
"autoLinkWorkItems": false,
"pullRequestDeploymentEnabled": false
},
"demands": [],
"conditions": [
{
"name": "ReleaseStarted",
"conditionType": 1,
"value": ""
}
],
"executionPolicy": {
"concurrencyCount": 0,
"queueDepthCount": 0
},
"schedules": [],
"retentionPolicy": {
"daysToKeep": 30,
"releasesToKeep": 3,
"retainBuild": true
},
"properties": {},
"preDeploymentGates": {
"id": 0,
"gatesOptions": null,
"gates": []
},
"postDeploymentGates": {
"id": 0,
"gatesOptions": null,
"gates": []
},
"environmentTriggers": []
}
],
"artifacts": [
{
"sourceId": "PROJECT_ID:REPO_ID",
"type": "Git",
"alias": "_wp-SITENAME-k8s",
"definitionReference": {
"branches": {
"id": "master",
"name": "master"
},
"checkoutNestedSubmodules": {
"id": "True",
"name": "Any nested submodules within"
},
"checkoutSubmodules": {
"id": "",
"name": ""
},
"defaultVersionSpecific": {
"id": "",
"name": ""
},
"defaultVersionType": {
"id": "latestFromBranchType",
"name": "Latest from the default branch"
},
"definition": {
"id": "REPO_ID",
"name": "wp-SITENAME-k8s"
},
"fetchDepth": {
"id": "",
"name": ""
},
"gitLfsSupport": {
"id": "",
"name": ""
},
"project": {
"id": "PROJECT_ID",
"name": "PROJECT_NAME"
}
},
"isPrimary": true,
"isRetained": false
}
],
"triggers": [],
"releaseNameFormat": "Release-$(rev:r)",
"tags": [],
"properties": {},
"name": "Deploy Wordpress (SITENAME)",
"path": "\\wordpress-cloud",
"projectReference": null,
"_links": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment