-
Notifications
You must be signed in to change notification settings - Fork 96
/
Copy pathazure-pipelines.yml
45 lines (38 loc) · 1.01 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
name : dotnet-blazor-crud
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
variables:
tag: '$(Build.BuildId)'
workingDirectory: '$(System.DefaultWorkingDirectory)/'
stages:
- stage: Build
displayName: Build image
jobs:
- job: Build
displayName: Build and push docker image
steps:
- task: Docker@2
displayName: Build and push the docker image
inputs:
command: buildAndPush
containerRegistry: dockerHub
repository: thbst16/dotnet-blazor-crud
tags: |
$(Build.BuildId)
latest
- stage: Deploy
displayName: Deploy docker container
dependsOn: Build
jobs:
- job: Deploy
displayName: Deploy the container to Azure Container Apps
steps:
- task: AzureContainerApps@1
displayName: Deploy the docker image
inputs:
azureSubscription: becksAzureRM
containerAppName: dotnet-blazor-crud
resourceGroup: beckshome-container-apps-rg
imageToDeploy: thbst16/dotnet-blazor-crud:$(Build.BuildId)