plantuml docker
1.0
在Docker容器中运行Plantuml。用作构建管道的一部分。
所有plantuml文件都存在于path-to-mount文件夹中,并具有扩展名.puml:
docker run -v path-to-mount:/source --rm -i robbell/plantuml-docker source/*.puml -o ./output
cat sample.puml | docker run --rm -i robbell/plantuml-docker > output.png
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
steps:
- script: docker run -v $(Build.Repository.LocalPath)/plantuml:/source --rm -i robbell/plantuml-docker source/*.puml -o ./output
displayName: 'Export PlantUML diagrams'
- task: PublishBuildArtifacts@1
displayName: 'Publish PlantUML diagrams as artifact'
inputs:
PathtoPublish: '$(Build.Repository.LocalPath)/plantuml/output'
ArtifactName: 'plantuml-output'