我正在尝试使用docker-compose
动态标记在Azure DevOps中构建的docker镜像。我不确定如何设置标签?
请注意,我如何尝试将Tag设置为variable
..然后在变量..中尝试加入一些常量字符串+内部版本号...
-> additionalImageTags: '${dockerCompose.imageTag}'
resources:
- repo: self
queue:
name: Hosted Ubuntu 1604
steps:
- task: DockerCompose@0
displayName: 'Build and Tag Images'
inputs:
azureSubscription: '<snipped>'
azureContainerRegistry: '<snipped>'
dockerComposeFile: 'docker-compose.yml'
additionalDockerComposeFiles: 'docker-compose.override.yml'
qualifyImageNames: false
action: 'Build services'
additionalImageTags: '${dockerCompose.imageTag}'
includeLatestTag: true
最佳答案
它应该是:$(dockerCompose.imageTag)
,除非您有其他不共享的错误。
关于docker - 如何在Azure DevOps中标记Docker镜像?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/53571151/