I am trying to push a docker container to different ECR registries based on the branch. Right now I need to specify one build step for each registry with a condition on branch, for example:
where ACCOUNT_ID would resolve to the correct account ID based on the branch?
I am thinking something like variable indirection in bash (${!varname}) but couldn’t think of a proper solution without having to embed everything in the drone file.
Could you keep the feature with matrix that I can use with variables? It has been used widely in our drone pipelines. Otherwise, what’s the new way to do it?