Pipeline
This commit is contained in:
48
Barcode-Host.yml
Normal file
48
Barcode-Host.yml
Normal file
@ -0,0 +1,48 @@
|
||||
trigger:
|
||||
branches:
|
||||
include:
|
||||
- master
|
||||
paths:
|
||||
include:
|
||||
- "Server/*"
|
||||
|
||||
pool:
|
||||
name: Mesa-Linux
|
||||
demands: Barcode-Host
|
||||
|
||||
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 Release --source https://eaf-prod.mes.infineon.com/v3/index.json"
|
||||
workingDirectory: Server
|
||||
displayName: "Core Build - Server"
|
||||
|
||||
- script: "systemctl stop barcode-host.service"
|
||||
displayName: "stop barcode-host service"
|
||||
enabled: false
|
||||
|
||||
- script: "dotnet publish --configuration Release --output ~/Barcode-Host-$(Build.SourceVersion)-$(Build.BuildId)-Release --source https://eaf-prod.mes.infineon.com/v3/index.json"
|
||||
workingDirectory: Server
|
||||
displayName: "Core Publish - Server"
|
||||
|
||||
- script: "systemctl start barcode-host.service"
|
||||
displayName: "start barcode-host service"
|
||||
enabled: false
|
Reference in New Issue
Block a user