Notifier - web api pipeline 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- checkout: self | |
- checkout: Common | |
- task: Docker@1 | |
displayName: Build Image ACC | |
inputs: | |
containerregistrytype: $(ContainerRegistryType) | |
azureSubscriptionEndpoint: $(ServiceConnectionEndpoint) | |
azureContainerRegistry: 'notifiercontainerregistryacc.azurecr.io' | |
command: 'Build an image' | |
dockerFile: './WebApi/.deploy/Dockerfile' | |
imageName: '$(SourceImageName)' | |
useDefaultContext: false | |
buildContext: './' | |
- task: Docker@1 | |
displayName: Push Image to ACC Registry | |
inputs: | |
containerregistrytype: $(ContainerRegistryType) | |
azureSubscriptionEndpoint: $(ServiceConnectionEndpoint) | |
azureContainerRegistry: 'notifiercontainerregistryacc.azurecr.io' | |
command: 'Push an image' | |
imageName: '$(SourceImageName)' | |
- task: Docker@1 | |
displayName: Build Image PRD | |
inputs: | |
containerregistrytype: $(ContainerRegistryType) | |
azureSubscriptionEndpoint: $(ServiceConnectionEndpoint) | |
azureContainerRegistry: 'notifiercontainerregistryprd.azurecr.io' | |
command: 'Build an image' | |
dockerFile: './WebApi/.deploy/Dockerfile' | |
imageName: '$(SourceImageName)' | |
useDefaultContext: false | |
buildContext: './' | |
- task: Docker@1 | |
displayName: Push Image to PRD Registry | |
inputs: | |
containerregistrytype: $(ContainerRegistryType) | |
azureSubscriptionEndpoint: $(ServiceConnectionEndpoint) | |
azureContainerRegistry: 'notifiercontainerregistryprd.azurecr.io' | |
command: 'Push an image' | |
imageName: '$(SourceImageName)' | |
- task: CopyFiles@2 | |
displayName: Copy deployment files | |
inputs: | |
SourceFolder: './WebApi/.deploy/k8s' | |
Contents: '**' | |
TargetFolder: '$(build.ArtifactStagingDirectory)/kubernetes' | |
CleanTargetFolder: true | |
OverWrite: true | |
- task: PublishBuildArtifacts@1 | |
displayName: Publish Artifacts | |
inputs: | |
PathtoPublish: '$(Build.ArtifactStagingDirectory)' | |
ArtifactName: 'drop' | |
publishLocation: 'Container' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment