This repository has been archived by the owner on Jan 21, 2023. It is now read-only.
forked from learning-lantern/Microservices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-deploy.yml
50 lines (43 loc) · 1.59 KB
/
azure-pipelines-deploy.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
# ASP.NET Core (.NET Framework)
# Build and test ASP.NET Core projects targeting the full .NET Framework.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
# Docker
# https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/docker-compose?view=azure-devops
trigger:
- main
resources:
- repo: self
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
# Container registry service connection established during pipeline creation
dockerRegistryServiceConnection: 'b5be6472-cd28-4b34-929d-1b4fc56d54e6'
azureSubscription: 'Learning Lantern Group'
dockerComposeFile: '**/docker-compose.yml'
stages:
- stage: Docker
jobs:
- job: Docker
displayName: Docker
pool:
vmImage: 'ubuntu-latest'
steps:
- task: DockerCompose@0
inputs:
containerregistrytype: 'Container Registry'
dockerRegistryEndpoint: 'Docker Hub'
dockerComposeFile: $(dockerComposeFile)
action: 'Build services'
- task: DockerCompose@0
inputs:
containerregistrytype: 'Container Registry'
dockerRegistryEndpoint: 'Docker Hub'
dockerComposeFile: $(dockerComposeFile)
action: 'Push services'
- task: AzureWebAppContainer@1
inputs:
azureSubscription: $(azureSubscription)
appName: 'learning-lantern'
multicontainerConfigFile: $(dockerComposeFile)