DamageAssessment_Backend/DamageAssesmentApi/azure-pipelines.yml
2023-10-14 04:16:24 +00:00

26 lines
751 B
YAML

trigger:
branches:
include:
- docker-branch # Change this to your preferred branch or trigger
pr:
- '*'
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: 'BuildAndPush'
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
docker-compose -f docker-compose.yml build
docker login -u $(acrServiceConnectionUsername) -p $(acrServiceConnectionPassword) $(acrServiceConnectionServer)
docker-compose -f docker-compose.yml push
displayName: 'Build and Push Docker Compose Project'
env:
acrServiceConnectionUsername: "dadeSchoolsContainerRegistry"
acrServiceConnectionPassword: "k1f8hE0O5hj3tYCCR/5stNrkw5BZoTmAqid/hvaVo8+ACRDc2Arn"
acrServiceConnectionServer: "dadeschoolscontainerregistry.azurecr.io"