diff options
-rw-r--r-- | azure-pipelines.yml | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 14f8a670..b24ef219 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -60,23 +60,26 @@ stages: - script: dotnet publish Timeline/Timeline.csproj --configuration $(buildConfiguration) --output ./Timeline/publish/
displayName: Dotnet Publish
- - task: PublishPipelineArtifact@1
- inputs:
- artifactName: 'timeline'
- targetPath: Timeline/publish
+ - publish: Timeline/publish
+ artifact: timeline
- deployment: deploy
displayName: Deploy to Server
- pool:
- name: 'Default'
- environment: 'timeline-server'
+ environment:
+ name: timeline-server
+ resourceType: VirtualMachine
+ tags: linux
dependsOn: build
strategy:
runOnce:
- deploy:
+ preDeploy:
steps:
+ - download: none
+
- download: current
- artifact: 'timeline'
+ artifact: timeline
+ deploy:
+ steps:
- script: |
rm -rf /var/timeline/*
cp -r $PIPELINE_WORKSPACE/timeline/. /var/timeline/
|