-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
49 lines (45 loc) · 1.33 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
trigger:
- master
#do not trigger ci on pull requests
pr: none
pool:
vmImage: ubuntu-latest
jobs:
- job: Publish
steps:
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Pipeline.Workspace)'
artifact: 'real-bi'
publishLocation: 'pipeline'
- deployment: VMDeploy
displayName: Deploy
pool:
vmImage: 'Ubuntu-18.04'
dependsOn: 'Publish'
environment:
name: realbi-node-vm-001
resourceType: VirtualMachine
tags: realbi-node-vm-001
strategy:
runOnce:
deploy:
steps:
- task: CmdLine@2
inputs:
script: 'docker-compose down'
workingDirectory: '/home/hpcclabs/projects/REAL-BI'
- task: CopyFiles@2
inputs:
SourceFolder: '/home/hpcclabs/azagent/_work/2/real-bi/s'
Contents: '**'
TargetFolder: '/home/hpcclabs/projects/REAL-BI'
OverWrite: true
- task: CmdLine@2
inputs:
script: 'docker-compose up --build -d'
workingDirectory: '/home/hpcclabs/projects/REAL-BI'
- task: CmdLine@2
inputs:
script: 'docker restart realbi_api'
workingDirectory: '/home/hpcclabs/projects/REAL-BI'