I'm new to using DevOps and new to the forum. I have been trying to learn Pipelines and CI/CD systems but have been stuck attempting to get a build deployed. Any insights or leads would be much appreciated.
I have a single repository with 3 directories, 1 x .NETCore API, 1 x Angular front end application and 1 with IdentityServer4.
I have a CI pipeline and a CD pipeline that both pass. But I get a HTTP 500.0 error when visiting the domain.
I get the feeling it is something to do with the pipelines that I don't understand properly and have been trying to figure it out. Any thoughts?
Setup: Azure DevOps, Virtual Machine - Windows Server 2016 Datacenter
Build YAML:\
pool:
name: Azure Pipelines
steps:
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: '$(Parameters.RestoreBuildProjects)'
- task: DotNetCoreCLI@2
displayName: Build
inputs:
projects: '$(Parameters.RestoreBuildProjects)'
arguments: '--configuration $(BuildConfiguration)'
- task: DotNetCoreCLI@2
displayName: Test
inputs:
command: test
projects: '$(Parameters.TestProjects)'
arguments: '--configuration $(BuildConfiguration)'
- task: DotNetCoreCLI@2
displayName: Publish
inputs:
command: publish
publishWebProjects: True
arguments: '--configuration $(BuildConfiguration) --output "$(build.artifactstagingdirectory)"'
zipAfterPublish: True
- task: CopyFiles@2
displayName: 'Copy ARM templates'
inputs:
SourceFolder: ArmTemplates
TargetFolder: '$(build.artifactstagingdirectory)'
- task: CopyFiles@2
displayName: 'Copy Database File'
inputs:
Contents: '**\*.sql'
TargetFolder: '$(build.artifactstagingdirectory)'
flattenFolders: true
- task: UseNode@1
displayName: 'Use Node 10.x'
inputs:
checkLatest: true
- task: Npm@1
displayName: 'npm install'
inputs:
workingDir: 'APP'
verbose: false
- task: Npm@1
displayName: 'npm custom'
inputs:
command: custom
workingDir: 'APP'
verbose: false
customCommand: 'install -g @angular/cli'
- task: Npm@1
displayName: 'npm custom'
inputs:
command: custom
workingDir: 'APP'
verbose: false
customCommand: 'run build --prod'
- task: ArchiveFiles@2
displayName: 'Archive APP/dist'
inputs:
rootFolderOrFile: 'APP/dist'
archiveFile: '$(Build.ArtifactStagingDirectory)/dest.zip'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact'
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
Release steps:
- Azure resource group deployment
- Azure SQL Database deployment
- IIS web app manage
- IIS web app deploy
Any help is appreciated. Cheers, Hazzard