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
66 changes: 66 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# ASP.NET
# Build and test ASP.NET projects.
# Add steps that publish symbols, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4

trigger:
- master

pool:
vmImage: 'windows-latest'

variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'

steps:
- task: NuGetToolInstaller@1

- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'

- task: BatchScript@1
inputs:
filename: '$(Build.SourcesDirectory)\src\PokerLeagueManager.UI.Web\BuildAngular.bat'

- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'

- task: CopyFiles@1
inputs:
SourceFolder: '$(Build.SourcesDirectory)\deploy'
Contents: '**\*'
TargetFolder: '$(Build.ArtifactStagingDirectory)\deploy'
flattenFolders: true

- task: CopyFiles@2
inputs:
SourceFolder: '$(Build.SourcesDirectory)\src'
Contents: |
**\*.dacpac
**\PokerLeagueManager*.zip
TargetFolder: '$(Build.ArtifactStagingDirectory)'
flattenFolders: true

- task: CopyFiles@2
inputs:
SourceFolder: '$(Build.SourcesDirectory)\src\PokerLeagueManager.Utilities\bin\$(buildConfiguration)'
Contents: '**\*'
TargetFolder: '$(Build.ArtifactStagingDirectory)\utilities'

- task: VSTest@2
inputs:
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'

- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
36 changes: 18 additions & 18 deletions deploy/Azure ARM/ArmTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@
{
"type": "Microsoft.Sql/servers",
"apiVersion": "2015-05-01-preview",
"name": "foo",
"location": "foo",
"name": "[parameters('appname')]",
"location": "[resourceGroup().location]",
"kind": "v12.0",
"properties": {
"administratorLogin": "foo",
"administratorLoginPassword": "foo",
"administratorLogin": "dylan",
"administratorLoginPassword": "P2ssw0rd",
"version": "12.0"
}
},
{
"type": "Microsoft.Web/serverfarms",
"apiVersion": "2016-09-01",
"name": "foo",
"location": "foo",
"name": "[parameters('appname')]",
"location": "[resourceGroup().location]",
"sku": {
"name": "B1",
"tier": "Basic",
Expand All @@ -49,7 +49,7 @@
"type": "Microsoft.Sql/servers/databases",
"apiVersion": "2017-10-01-preview",
"name": "[concat(parameters('appname'), '/Events')]",
"location": "foo",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', parameters('appname'))]"
],
Expand All @@ -68,10 +68,10 @@
{
"type": "Microsoft.Sql/servers/databases",
"apiVersion": "2017-10-01-preview",
"name": "foo",
"location": "foo",
"name": "[concat(parameters('appname'), '/Queries')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', foo)]"
"[resourceId('Microsoft.Sql/servers', parameters('appname'))]"
],
"sku": {
"name": "Standard",
Expand Down Expand Up @@ -100,10 +100,10 @@
{
"type": "Microsoft.Web/sites",
"apiVersion": "2016-08-01",
"name": "foo",
"location": "foo",
"name": "[parameters('appname')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', foo)]"
"[resourceId('Microsoft.Web/serverfarms', parameters('appname'))]"
],
"kind": "app",
"properties": {
Expand All @@ -120,8 +120,8 @@
"[concat('Microsoft.Insights/components/', parameters('appname'))]"
],
"properties": {
"QueryServiceUrl": "[concat('http://', foo, '.azurewebsites.net')]",
"CommandServiceUrl": "[concat('http://', foo, '.azurewebsites.net')]",
"QueryServiceUrl": "[concat('http://', parameters('appname'), '-queries.azurewebsites.net')]",
"CommandServiceUrl": "[concat('http://', parameters('appname'), '-commands.azurewebsites.net')]",
"AppInsightsKey": "[reference(resourceId('Microsoft.Insights/components', parameters('appname')), '2014-04-01').InstrumentationKey]"
}
}
Expand All @@ -138,7 +138,7 @@
"kind": "app",
"properties": {
"enabled": true,
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', foo)]"
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('appname'))]"
},
"resources": [
{
Expand All @@ -148,7 +148,7 @@
"dependsOn": [ "[concat('Microsoft.Web/sites/', parameters('appname'), '-commands')]" ],
"properties": {
"default": {
"value": "[concat('Data Source=tcp:', reference(concat('Microsoft.Sql/servers/', foo)).fullyQualifiedDomainName, ',1433;Initial Catalog=foo;User Id=foo;Password=foo;')]",
"value": "[concat('Data Source=tcp:', reference(concat('Microsoft.Sql/servers/', parameters('appname'))).fullyQualifiedDomainName, ',1433;Initial Catalog=Events;User Id=dylan;Password=P2ssw0rd;')]",
"type": "SQLAzure"
}
}
Expand All @@ -162,7 +162,7 @@
"[concat('Microsoft.Insights/components/', parameters('appname'))]"
],
"properties": {
"QueryServiceUrl": "[concat('http://', foo, '-queries.azurewebsites.net')]",
"QueryServiceUrl": "[concat('http://', parameters('appname'), '-queries.azurewebsites.net')]",
"AppInsightsKey": "[reference(resourceId('Microsoft.Insights/components', parameters('appname')), '2014-04-01').InstrumentationKey]"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<button mat-button class="sidenav-toggle" (click)="toggleSideNav()" *ngIf="isScreenMedium()">
<mat-icon>menu</mat-icon>
</button>
<h1 class="page-title">Recent Games - Dylan is Awesome</h1>
<h1 class="page-title">Recent Games - DevOps Iginite 2019</h1>
<div class="flex-spacer"></div>
<a mat-button routerLink="SignIn">Sign In</a>
</nav>