-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
34 lines (30 loc) · 867 Bytes
/
Copy pathazure-pipelines.yml
File metadata and controls
34 lines (30 loc) · 867 Bytes
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
trigger:
- development
pool:
vmimage: 'ubuntu-latest'
variables:
IMAGE_REGISTRY_CONNECTION: 'BodAdminSuiteContainers'
IMAGE_REGISTRY: 'BodAdminSuiteContainers'
IMAGE_REPOSITORY: 'governanceportal.azurecr.io'
TAG: 'latest'
stages:
- stage: BuildDockerImage
jobs:
- job: BuildPushImage
steps:
- task: Docker@2
inputs:
containerRegistry: '$(IMAGE_REGISTRY_CONNECTION)'
repository: '$(IMAGE_REPOSITORY)'
command: 'buildAndPush'
Dockerfile: '**/Dockerfile'
tags: '$(TAG)'
- stage: DeployDev
jobs:
- job: DeployDev
steps:
- task: AzureWebAppContainer@1
inputs:
azureSubscription: 'Azure subscription 1(e150a27b-e96f-452a-ad3d-35a48a9da39d)'
appName: 'governanceportaltest'
containers: 'bodadminsuitecontainers.azurecr.io/governanceportal.azurecr.io:$(TAG)'