DamageAssessment_Backend/DamageAssesmentApi/azure-pipelines.yml
2023-10-13 18:28:15 -04:00

21 lines
665 B
YAML

trigger:
- docker-branch # Change this to your preferred branch or trigger
pr:
- '*'
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: 'BuildAndPush'
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: $(ACRServiceConnectionName.username)
acrServiceConnectionPassword: $(ACRServiceConnectionName.password)
acrServiceConnectionServer: $(ACRServiceConnectionName.server)