Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
be86917
Initial
tpetchel Sep 30, 2019
0f6d4cf
Merge branch 'master' into blue-green
tpetchel Oct 14, 2019
494649e
Update to .NET Core 3.1
tpetchel Jan 24, 2020
e320ff1
Merge pull request #21 from MicrosoftDocs/blue-green-dotnet31
tpetchel Jan 24, 2020
5b64d03
Merge branch 'master' into blue-green
tpetchel Jun 15, 2020
6a369a4
Bump Ubuntu, .NET Core SDK versions
tpetchel Jun 15, 2020
00fbf64
Merge pull request #45 from MicrosoftDocs/blue-green-1
tpetchel Jun 16, 2020
836e3d6
Merge branch 'main' into blue-green-21q4r
tpetchel Jun 21, 2021
467a471
Bump Ubuntu, .NET versions
tpetchel Jun 21, 2021
af9deff
Merge branch 'main' into blue-green-21q4r
tpetchel Jun 24, 2021
0ed342a
Merge pull request #99 from MicrosoftDocs/blue-green-21q4r
tpetchel Jun 24, 2021
53041eb
Merge branch 'main' into blue-green
tpetchel Dec 10, 2021
d51179a
Merge branch 'main' into blue-green
tpetchel Feb 8, 2022
11c78ad
Merge branch 'main' into blue-green
tpetchel Feb 8, 2022
755a581
Merge branch 'main' into blue-green
tpetchel Jun 3, 2022
7be83f8
Bump dotnetSdkVersion from 5.x to 6.x
Nighteyez07 Jul 27, 2022
96c4f13
Merge pull request #158 from Nighteyez07/blue-green-bump-pipeline-dot…
tpetchel Jul 28, 2022
f843b1d
Trigger the pipeline
jbevly Sep 8, 2023
5fcb6f3
Trigger the pipeline
jbevly Oct 3, 2023
c295f93
Trigger the pipeline
jbevly Oct 3, 2023
d4874ef
Trigger the pipeline
jbevly Oct 3, 2023
00dac9a
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 3, 2023
c715d1c
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 3, 2023
3277440
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 3, 2023
2e4d991
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 3, 2023
b177c30
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 4, 2023
174a0cc
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 11, 2023
880f663
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 11, 2023
ffaa0c2
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 11, 2023
ae50c87
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 11, 2023
1203535
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 11, 2023
fbd4b77
Update Index.cshtml
jbevly Oct 11, 2023
74b1a9c
Update Index.cshtml
jbevly Oct 12, 2023
39a2d2b
Update Index.cshtml
jbevly Oct 13, 2023
0d9752b
Update Index.cshtml
jbevly Oct 13, 2023
f50be1f
Update Index.cshtml
jbevly Oct 13, 2023
f0ac447
Update Index.cshtml
jbevly Oct 13, 2023
1389322
Update Index.cshtml
jbevly Oct 13, 2023
90112c1
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
1852fbf
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
9f9e8d2
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
3168a71
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
24ef082
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
cd858d5
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
a25cc05
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
5cc4b37
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
54e4817
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
b3b9494
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
e844fd0
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
063055c
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
70bdf38
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
c9e40d5
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
d5ef7ec
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
73e92ad
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
916d975
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
f74560f
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 13, 2023
07f3ae9
Update Index.cshtml
jbevly Oct 17, 2023
0a1e9ad
Update Index.cshtml
jbevly Oct 18, 2023
79c79bb
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 18, 2023
7d77267
Update azure-pipelines.yml for Azure Pipelines
jbevly Oct 18, 2023
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
2 changes: 1 addition & 1 deletion Tailspin.SpaceGame.Web/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,4 @@ public IActionResult Error()
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
}
}
}
}
2 changes: 1 addition & 1 deletion Tailspin.SpaceGame.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
});
}
}
}
}
4 changes: 2 additions & 2 deletions Tailspin.SpaceGame.Web/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<section class="intro">
<div class="container">
<img class="title" src="/images/space-game-title.svg" alt="Space Game">
<p>An example site for learning</p>
<p>Where does this show up? Hopefully Test Slot only!</p>
</div>
</section>
<section class="download">
Expand Down Expand Up @@ -267,4 +267,4 @@
</div>
</div>
</div>
</div>
</div>
185 changes: 185 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
trigger:
- none

variables:
buildConfiguration: 'Release'

stages:
- stage: 'Build'
displayName: 'Build the web application'
jobs:
- job: 'Build'
displayName: 'Build job'
pool:
vmImage: 'ubuntu-20.04'
demands:
- npm

variables:
wwwrootDir: 'Tailspin.SpaceGame.Web/wwwroot'
dotnetSdkVersion: '6.x'

steps:
- task: UseDotNet@2
displayName: 'Use .NET SDK $(dotnetSdkVersion)'
inputs:
version: '$(dotnetSdkVersion)'

- task: Npm@1
displayName: 'Run npm install'
inputs:
verbose: false

- script: './node_modules/.bin/node-sass $(wwwrootDir) --output $(wwwrootDir)'
displayName: 'Compile Sass assets'

- task: gulp@1
displayName: 'Run gulp tasks'

- script: 'echo "$(Build.DefinitionName), $(Build.BuildId), $(Build.BuildNumber)" > buildinfo.txt'
displayName: 'Write build info'
workingDirectory: $(wwwrootDir)

- task: DotNetCoreCLI@2
displayName: 'Restore project dependencies'
inputs:
command: 'restore'
projects: '**/*.csproj'

- task: DotNetCoreCLI@2
displayName: 'Build the project - $(buildConfiguration)'
inputs:
command: 'build'
arguments: '--no-restore --configuration $(buildConfiguration)'
projects: '**/*.csproj'

- task: DotNetCoreCLI@2
displayName: 'Publish the project - $(buildConfiguration)'
inputs:
command: 'publish'
projects: '**/*.csproj'
publishWebProjects: false
arguments: '--no-build --configuration $(buildConfiguration) --output $(Build.ArtifactStagingDirectory)/$(buildConfiguration)'
zipAfterPublish: true

- publish: '$(Build.ArtifactStagingDirectory)'
artifact: drop

- stage: 'Dev'
displayName: 'Deploy to the dev environment'
dependsOn: Build
jobs:
- deployment: Deploy
pool:
vmImage: 'ubuntu-20.04'
environment: dev
variables:
- group: Release
strategy:
runOnce:
deploy:
steps:
- download: current
artifact: drop
- task: AzureWebApp@1
displayName: 'Azure App Service Deploy: website'
inputs:
azureSubscription: 'Resource Manager - Tailspin - Space Game'
appType: 'webApp'
appName: '$(WebAppNameDev)'
package: '$(Pipeline.Workspace)/drop/$(buildConfiguration)/*.zip'
deploymentMethod: 'auto'

- stage: 'Test'
displayName: 'Deploy to the test environment'
dependsOn: Dev
jobs:
- deployment: Deploy
pool:
vmImage: 'ubuntu-20.04'
environment: test
variables:
- group: 'Release'
strategy:
runOnce:
deploy:
steps:
- download: current
artifact: drop
- task: AzureWebApp@1
displayName: 'Azure App Service Deploy: website'
inputs:
azureSubscription: 'Visual Studio Enterprise Subscription(b339a5d1-6a50-4675-b00d-7b4af859bdd9)'
appType: 'webApp'
appName: '$(WebAppNameTest)'
package: '$(Pipeline.Workspace)/drop/$(buildConfiguration)/*.zip'
deploymentMethod: 'auto'

#- stage: 'TestSlot'
# displayName: 'Deploy to the test slot'
# dependsOn: Test
# jobs:
# - deployment: Deploy
# pool:
# vmImage: 'ubuntu-20.04'
# environment: testslot
# variables:
# - group: 'Release'
# strategy:
# runOnce:
# deploy:
# steps:
# - download: current
# artifact: drop



- stage: 'Staging'
displayName: 'Deploy to the staging environment'
dependsOn: Test
jobs:
- deployment: Deploy
pool:
vmImage: 'ubuntu-20.04'
environment: staging
variables:
- group: 'Release'
strategy:
runOnce:
deploy:
steps:
- download: current
artifact: drop
- task: AzureWebApp@1
displayName: 'Azure App Service Deploy: Swap Slot'
inputs:
azureSubscription: 'Visual Studio Enterprise Subscription(1)(b339a5d1-6a50-4675-b00d-7b4af859bdd9)'
appType: 'webApp'
appName: '$(WebAppNameStaging)'
deployToSlotOrASE: true
resourceGroupName: 'SpaceGame2-rg'
slotName: 'swap'
package: '$(Pipeline.Workspace)/drop/$(buildConfiguration)/*.zip'
deploymentMethod: 'auto'
# - task: AzureWebApp@1
# displayName: 'Azure App Service Deploy: Test Slot'
# inputs:
# azureSubscription: 'Visual Studio Enterprise Subscription(1)(b339a5d1-6a50-4675-b00d-7b4af859bdd9)'
# appType: 'webApp'
# appName: '$(WebAppNameStaging)'
# deployToSlotOrASE: true
# resourceGroupName: 'SpaceGame2-rg'
# slotName: 'test-slot'
# package: '$(Pipeline.Workspace)/drop/$(buildConfiguration)/*.zip'
# deploymentMethod: 'auto'


# - task: AzureAppServiceManage@0
# displayName: Swap Deployment Slots
# inputs:
# azureSubscription: 'Visual Studio Enterprise Subscription(b339a5d1-6a50-4675-b00d-7b4af859bdd9)'
# Action: 'Swap Slots'
# WebAppName: '$(WebAppNameStaging)'
# ResourceGroupName: 'SpaceGame2-rg'
# SourceSlot: 'swap'