-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease-pipeline.yml
40 lines (33 loc) · 1.01 KB
/
release-pipeline.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
name: Delivery CashFlow API
trigger:
- main
variables:
poolName: 'Sauron-Agent-Pool'
dockerRegistryServiceConnection: 'bb3c0c20-6588-4bd6-b7f5-34b35eeb62ef'
imageRepository: 'cashflow'
containerRegistry: 'cashflow7.azurecr.io'
dockerfilePath: 'Dockerfile'
tag: '$(Build.BuildId)'
# Agent VM image name
vmImageName: 'ubuntu-latest'
pool:
name: $(poolName)
vmImage: $(vmImageName)
steps:
- task: DownloadSecureFile@1
name: appSettings
displayName: 'Download appsettings.Production.json'
inputs:
secureFile: 'appsettings.Production.json'
- script: |
cp $(appSettings.secureFilePath) src/CashFlow.Api/appsettings.Production.json
- task: Docker@2
displayName: Build and push an image to container registry
inputs:
command: buildAndPush
repository: $(imageRepository)
dockerfile: $(dockerfilePath)
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
latest
$(tag)