Whenever I am pushing to ProGet from Azure DevOps using the "Docker Compose" task, I recieve an error that I did not provide the feed name.
Here is my azure-build.yml.
trigger:
- master
pool:
name: [redacted]
steps:
- task: DockerCompose@0
displayName: Build services
inputs:
action: Build services
containerregistrytype: Container Registry
dockerRegistryEndpoint: Proget Docker
dockerComposeFile: docker-compose.yml
projectName: [redacted]
qualifyImageNames: false
additionalImageTags: |
$(Build.BuildId)
latest
- task: DockerCompose@0
displayName: Push services
inputs:
containerregistrytype: Container Registry
dockerRegistryEndpoint: Proget Docker
action: Push services
dockerComposeFile: docker-compose.yml
projectName: [redacted]
qualifyImageNames: true
additionalImageTags: |
$(Build.BuildId)
latest
The build completes. The push runs into an error.
The error I receive:
Docker repository names in ProGet must include the feed as a prefix. Example: MyFeed/library/ubuntu
I need to use the Docker-Compose task for this specific service. To contrast, here's my regulars "Docker Build" task that lets me include the whole repository name and works every time:
trigger:
- master
pool:
name: [redacted]
steps:
- task: Docker@2
displayName: buildAndPush
inputs:
containerRegistry: 'Proget Docker'
repository: [org name (feed?)]/[image name]
Dockerfile: Dockerfile
buildContext: .
tags: |
$(Build.BuildId)
latest
How do I provide the Feed prefix with the docker-compose task?