From 15c533eb324526776f4a8a9d82b150dbfd46d7e6 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 31 May 2020 15:35:25 +0800 Subject: Migrate to docker. --- azure-pipelines.yml | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) (limited to 'azure-pipelines.yml') 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 -- cgit v1.2.3