-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
59 lines (52 loc) · 1.45 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
50
51
52
53
54
55
56
57
58
59
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
name: 0.1.$(Rev:r)
variables:
- group: theale-prism-central
trigger:
- master
pool: 'default'
stages:
# - stage: Build
# displayName: Build and push stage
# jobs:
# - job: Build
# displayName: Build job
# steps:
# - task: Docker@2
# displayName: Build image
# inputs:
# repository: ukdemo/calm-dsl
# command: build
# # arguments: '--no-cache'
# tags: |
# latest
# $(Build.BuildId)
# - task: Docker@2
# displayName: Push image
# inputs:
# containerRegistry: $(dockerRegistryServiceConnection)
# repository: ukdemo/calm-dsl
# command: push
# tags: |
# latest
# $(Build.BuildId)
- stage: Deploy
jobs:
- deployment: DeployCalm
displayName: 'Deploy to Calm'
container:
image: ukdemo/calm-dsl:latest
environment: 'dev'
strategy:
runOnce:
deploy:
steps:
- checkout: none
- script: |
sudo ln -s /root/.local/bin/calm /usr/local/bin/calm
sudo calm init dsl -i $(pc_ip) -P $(pc_port) -u $(pc_user) -p $(pc_pass) -pj $(calm_projectName)
sudo calm run runbook -w -i demo-tf-aws_vpc
sudo py3clean .