Created
February 11, 2021 13:28
-
-
Save Castone22/6f4160703a5f3f0c518ea3c640d3f2ab to your computer and use it in GitHub Desktop.
Azure Pipelines Docker Compose environment binding failure mode 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jobs: | |
- job: Example | |
displayName: Example | |
variables: | |
build_id: $(Build.BuildId) | |
pool: | |
vmImage: 'ubuntu-latest' | |
steps: | |
- bash: echo $BUILD_ID | |
- task: DockerCompose@0 | |
inputs: | |
containerregistrytype: 'Container Registry' | |
dockerRegistryEndpoint: 'Insert Registry Here' | |
dockerComposeFile: '**/docker-compose.yml' | |
action: 'Run a specific service' | |
serviceName: 'example' | |
containerCommand: echo $BUILD_ID | |
detached: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
example: | |
build: . | |
environment: | |
BUILD_ID: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM busybox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment