Skip to content

Instantly share code, notes, and snippets.

@Castone22
Created February 11, 2021 13:28
Show Gist options
  • Save Castone22/6f4160703a5f3f0c518ea3c640d3f2ab to your computer and use it in GitHub Desktop.
Save Castone22/6f4160703a5f3f0c518ea3c640d3f2ab to your computer and use it in GitHub Desktop.
Azure Pipelines Docker Compose environment binding failure mode 2
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
services:
example:
build: .
environment:
BUILD_ID:
FROM busybox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment