Skip to content

Commit

Permalink
Added Azure deploy button
Browse files Browse the repository at this point in the history
  • Loading branch information
ShyykoSerhiy committed Feb 2, 2015
1 parent 191d361 commit 002790c
Show file tree
Hide file tree
Showing 2 changed files with 160 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,11 @@ OR
```
heroku restart
```

##Deploy on Azure

### Azure Button

Use the button below to instantly setup your own Gatekeeper instance on Azure.

[![Deploy to Azure](http://azuredeploy.net/deploybutton.png)](https://azuredeploy.net/)
152 changes: 152 additions & 0 deletions azuredeploy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"siteName": {
"type": "string"
},
"hostingPlanName": {
"type": "string"
},
"siteLocation": {
"type": "string"
},
"sku": {
"type": "string",
"allowedValues": [
"Free",
"Shared",
"Basic",
"Standard"
],
"defaultValue": "Free"
},
"workerSize": {
"type": "string",
"allowedValues": [
"0",
"1",
"2"
],
"defaultValue": "0"
},
"oauthClientId": {
"type": "string",
"defaultValue": "GITHUB_APPLICATION_CLIENT_ID"
},
"oauthClientSecret": {
"type": "string",
"defaultValue": "GITHUB_APPLICATION_CLIENT_SECRET"
},
"oauthHost": {
"type": "string",
"defaultValue": "github.com"
},
"oauthPort": {
"type": "string",
"defaultValue": "443"
},
"oauthPath": {
"type": "string",
"defaultValue": "/login/oauth/access_token"
},
"oauthMethod": {
"type": "string",
"allowedValues": [
"POST",
"PUT",
"GET",
"DELETE"
],
"defaultValue": "POST"
},
"repoUrl": {
"type": "string"
},
"branch": {
"type": "string"
}
},
"resources": [
{
"apiVersion": "2014-06-01",
"name": "[parameters('hostingPlanName')]",
"type": "Microsoft.Web/serverFarms",
"location": "[parameters('siteLocation')]",
"properties": {
"name": "[parameters('hostingPlanName')]",
"sku": "[parameters('sku')]",
"workerSize": "[parameters('workerSize')]",
"numberOfWorkers": 1
}
},
{
"apiVersion": "2014-06-01",
"name": "[parameters('siteName')]",
"type": "Microsoft.Web/Sites",
"location": "[parameters('siteLocation')]",
"dependsOn": [
"[concat('Microsoft.Web/serverFarms/', parameters('hostingPlanName'))]"
],
"tags": {
"[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]": "empty"
},
"properties": {
"name": "[parameters('siteName')]",
"serverFarm": "[parameters('hostingPlanName')]"
},
"resources": [
{
"apiVersion": "2014-04-01",
"type": "config",
"name": "web",
"dependsOn": [
"[concat('Microsoft.Web/Sites/', parameters('siteName'))]"
],
"properties": {
"appSettings": [
{
"name": "oauth_client_id",
"value": "[parameters('oauthClientId')]"
},
{
"name": "oauth_client_secret",
"value": "[parameters('oauthClientSecret')]"
},
{
"name": "oauth_host",
"value": "[parameters('oauthHost')]"
},
{
"name": "oauth_port",
"value": "[parameters('oauthPort')]"
},
{
"name": "oauth_path",
"value": "[parameters('oauthPath')]"
},
{
"name": "oauth_method",
"value": "[parameters('oauthMethod')]"
}
]
}
},
{
"apiVersion": "2014-04-01",
"name": "web",
"type": "sourcecontrols",
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', parameters('siteName'))]",
"[concat('Microsoft.Web/Sites/', parameters('siteName'), '/config/web')]"
],
"properties": {
"RepoUrl": "[parameters('repoUrl')]",
"branch": "[parameters('branch')]",
"IsManualIntegration": true
}
}
]
}
]
}

0 comments on commit 002790c

Please sign in to comment.