21 lines
665 B
YAML
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) |