From 55e27059e5d018760c90293465fb404211fbf99b Mon Sep 17 00:00:00 2001 From: Santhosh Nair <913441@dadeschools.net> Date: Mon, 16 Oct 2023 03:31:15 +0000 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- DamageAssesmentApi/azure-pipelines.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/DamageAssesmentApi/azure-pipelines.yml b/DamageAssesmentApi/azure-pipelines.yml index aba5677..996f9db 100644 --- a/DamageAssesmentApi/azure-pipelines.yml +++ b/DamageAssesmentApi/azure-pipelines.yml @@ -1,8 +1,3 @@ -trigger: - branches: - include: - - docker-branch # Change this to your preferred branch or trigger - pr: - '*' @@ -14,9 +9,14 @@ jobs: pool: vmImage: 'ubuntu-latest' steps: + - checkout: self - script: | 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 displayName: 'Build and Push Docker Compose Project' - \ No newline at end of file + +trigger: + branches: + include: + - docker-branch