Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
Santhosh Nair 2023-10-16 03:31:15 +00:00
parent 3ac36bf86f
commit 55e27059e5

View File

@ -1,8 +1,3 @@
trigger:
branches:
include:
- docker-branch # Change this to your preferred branch or trigger
pr: pr:
- '*' - '*'
@ -14,9 +9,14 @@ jobs:
pool: pool:
vmImage: 'ubuntu-latest' vmImage: 'ubuntu-latest'
steps: steps:
- checkout: self
- script: | - script: |
docker-compose -f docker-compose.yml build docker-compose -f docker-compose.yml build
docker login -u $("dadeSchoolsContainerRegistry") -p $("k1f8hE0O5hj3tYCCR/5stNrkw5BZoTmAqid/hvaVo8+ACRDc2Arn") $("dadeschoolscontainerregistry.azurecr.io") docker login -u "$(dadeSchoolsContainerRegistry)" -p "$(k1f8hE0O5hj3tYCCR/5stNrkw5BZoTmAqid/hvaVo8+ACRDc2Arn)" "dadeschoolscontainerregistry.azurecr.io"
docker-compose -f docker-compose.yml push docker-compose -f docker-compose.yml push
displayName: 'Build and Push Docker Compose Project' displayName: 'Build and Push Docker Compose Project'
trigger:
branches:
include:
- docker-branch