2023-10-13 17:28:15 -05:00
|
|
|
trigger:
|
2023-10-13 23:16:24 -05:00
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- docker-branch # Change this to your preferred branch or trigger
|
2023-10-13 17:28:15 -05:00
|
|
|
|
|
|
|
pr:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-latest'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: 'BuildAndPush'
|
2023-10-13 23:14:40 -05:00
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-latest'
|
2023-10-13 17:28:15 -05:00
|
|
|
steps:
|
|
|
|
- script: |
|
|
|
|
docker-compose -f docker-compose.yml build
|
2023-10-15 11:48:47 -05:00
|
|
|
docker login -u $("dadeSchoolsContainerRegistry") -p $("k1f8hE0O5hj3tYCCR/5stNrkw5BZoTmAqid/hvaVo8+ACRDc2Arn") $("dadeschoolscontainerregistry.azurecr.io")
|
2023-10-13 17:28:15 -05:00
|
|
|
docker-compose -f docker-compose.yml push
|
|
|
|
displayName: 'Build and Push Docker Compose Project'
|
2023-10-15 11:48:47 -05:00
|
|
|
|