Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Tynab committed Feb 12, 2024
1 parent 6cdc8ba commit 230dcab
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ resources:
- repo: self

variables:
azureSubscription: Azure Subscription
appName: yanlib

# Container registry service connection established during pipeline creation
dockerRegistryServiceConnection: 'ce9f9676-fd62-44d0-b5f0-edbfe9efa601'
dockerRegistryServiceConnection: '{{ containerRegistryConnection }}'
imageRepository: 'yanlib'
containerRegistry: 'yanlib.azurecr.io'
dockerfilePath: '$(Build.SourcesDirectory)/Dockerfile'
Expand All @@ -37,3 +40,10 @@ stages:
containerRegistry: $(dockerRegistryServiceConnection)
tags: |
$(tag)
- task: AzureWebAppContainer@1
displayName: 'Azure Web App on Container Deploy'
inputs:
azureSubscription: $(azureSubscription)
appName: $(appName)
containers: $(containerRegistry)/$(imageRepository):$(tag)

0 comments on commit 230dcab

Please sign in to comment.