I have several targets that build containers in my project and some depend on each other. I can use the tags option to specify that the containers will be tagged with the branch name which is great when building in a feature branch, but is there a way to use the same value in the build-args to tie multiple container images from the same branch together?
I have several targets that build containers in my project and some depend on each other. I can use the
tags
option to specify that the containers will be tagged with the branch name which is great when building in a feature branch, but is there a way to use the same value in thebuild-args
to tie multiple container images from the same branch together?Something like this:
project.json:
Dockerfile:
Or am I going about this the wrong way maybe? I'm still relatively new to containers.