-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathazure-pipelines.yml
51 lines (45 loc) · 1023 Bytes
/
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
trigger: none
pool:
vmImage: ubuntu-latest
parameters:
- name: deploy
displayName: Deploy
type: string
values:
- resource-groups
- base
- piwind
- models
- azure
- oasis
- images
resources:
repositories:
- repository: OasisPlatform
name: OasisLMF/OasisPlatform
endpoint: OasisLMF
type: github
ref: main
- repository: OasisPiWind
name: OasisLMF/OasisPiWind
endpoint: OasisLMF
type: github
ref: main
steps:
- checkout: self
path: OasisAzureDeployment
- checkout: OasisPlatform
path: OasisPlatform
- checkout: OasisPiWind
path: OasisPiWind
- task: AzureCLI@2
displayName: Deploy
inputs:
azureSubscription: "Azure connection"
scriptType: bash
scriptLocation: inlineScript
addSpnToEnvironment: true
inlineScript: |
set -e
cd ../OasisAzureDeployment
OE_SETTINGS_FILE=settings/settings.sh ./deploy.sh ${{ parameters.deploy }}