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
commitf4a5e30e26c50e91fb5fa064577ab37359dadca8 (patch)
treeb030e7e9c8611000dea03e4b968a2c019464a6c5
parentf521f9fa30dc4dcc3c196250b81d6e9136b63da0 (diff)
downloadtimeline-f4a5e30e26c50e91fb5fa064577ab37359dadca8.tar.gz
timeline-f4a5e30e26c50e91fb5fa064577ab37359dadca8.tar.bz2
timeline-f4a5e30e26c50e91fb5fa064577ab37359dadca8.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/