aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-16 23:58:24 +0800
committercrupest <crupest@outlook.com>2020-01-16 23:58:24 +0800
commit8e5ac65a3d0572e125b7de9a588e71f6276946ac (patch)
treeb030e7e9c8611000dea03e4b968a2c019464a6c5
parent07d383dedfb937418160acc51b712c5d4ef842a6 (diff)
downloadtimeline-8e5ac65a3d0572e125b7de9a588e71f6276946ac.tar.gz
timeline-8e5ac65a3d0572e125b7de9a588e71f6276946ac.tar.bz2
timeline-8e5ac65a3d0572e125b7de9a588e71f6276946ac.zip
Update CI.
-rw-r--r--azure-pipelines.yml21
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/