diff options
author | crupest <crupest@outlook.com> | 2020-05-31 15:35:25 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-05-31 15:35:25 +0800 |
commit | 635b5ea646ec55c7ae212f79031b69c00ad79763 (patch) | |
tree | 6697477582d8d710c3961daad0b22a533edddfb2 /azure-pipelines.yml | |
parent | 590522661ba90ac388029c83d248e8277d2325f7 (diff) | |
download | timeline-635b5ea646ec55c7ae212f79031b69c00ad79763.tar.gz timeline-635b5ea646ec55c7ae212f79031b69c00ad79763.tar.bz2 timeline-635b5ea646ec55c7ae212f79031b69c00ad79763.zip |
Migrate to docker.
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r-- | azure-pipelines.yml | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2231f532..22ceaf8a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -80,22 +80,11 @@ stages: - publish: Timeline/publish
artifact: timeline
- - deployment: deploy
- displayName: Deploy to Server
- environment:
- name: timeline-server
- resourceType: VirtualMachine
- tags: linux
- dependsOn: build
- strategy:
- runOnce:
- deploy:
- steps:
- - download: current
- artifact: timeline
-
- - script: |
- rm -rf /var/timeline/*
- cp -r $PIPELINE_WORKSPACE/timeline/. /var/timeline/
- sudo systemctl restart timeline.service
- displayName: 'Copy Files and Restart Service'
+ - task: Docker@2
+ displayName: Build And Push Docker Image
+ inputs:
+ command: buildAndPush
+ repository: timeline
+ tags: latest
+ buildContext: Timeline
+ containerRegistry: crupest-docker-hub
|