Downgrade to net6.0 and add yml
This commit is contained in:
58
azure-pipelines-server.yml
Normal file
58
azure-pipelines-server.yml
Normal file
@ -0,0 +1,58 @@
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
- red-hat
|
||||
paths:
|
||||
include:
|
||||
- "Server/*"
|
||||
- "Shared/*"
|
||||
- "Server.Tests/*"
|
||||
exclude:
|
||||
- ".vscode/*"
|
||||
- "JavaScript/*"
|
||||
- "SignalRChat/*"
|
||||
- "**/*.yml"
|
||||
|
||||
variables:
|
||||
BuildConfiguration: "Release"
|
||||
ASPNETCORE_ENVIRONMENT: "Production"
|
||||
|
||||
stages:
|
||||
- stage: auclv0558
|
||||
displayName: auclv0558
|
||||
pool:
|
||||
name: open-insight-metrology-viewer
|
||||
demands: barcode-host-auclv0558
|
||||
jobs:
|
||||
- job: auclv0558
|
||||
steps:
|
||||
- script: |
|
||||
echo $(Build.BuildId)
|
||||
echo $(Build.Reason)
|
||||
echo $(Build.Repository.Id)
|
||||
echo $(Build.Repository.Name)
|
||||
echo $(Build.SourceVersion)
|
||||
displayName: "Echo Check"
|
||||
|
||||
- script: "dotnet nuget locals all --clear"
|
||||
displayName: "Nuget Clear"
|
||||
enabled: false
|
||||
|
||||
- script: |
|
||||
dotnet user-secrets init
|
||||
dotnet user-secrets set "BuildNumber" "$(Build.BuildId)"
|
||||
dotnet user-secrets set "BuildSourceVersion" "$(Build.SourceVersion)"
|
||||
dotnet user-secrets list
|
||||
workingDirectory: Server
|
||||
displayName: "Safe storage of app secrets - Server"
|
||||
|
||||
- script: "dotnet build --configuration $(BuildConfiguration)"
|
||||
workingDirectory: Server
|
||||
displayName: "Core Build - Server"
|
||||
|
||||
- script: "dotnet publish --configuration $(BuildConfiguration) --output ~/Barcode-Host-$(Build.SourceVersion)-$(Build.BuildId)-$(BuildConfiguration)/Server"
|
||||
workingDirectory: Server
|
||||
displayName: "Core Publish - Server"
|
||||
|
||||
- script: "echo ln -s /home/$USER/Barcode-Host-$(Build.SourceVersion)-$(Build.BuildId)-$(BuildConfiguration)/Server /var/www/Barcode-Host/Server"
|
||||
displayName: "Echo Symbolic Link Command"
|
Reference in New Issue
Block a user