Use a build image as a build argument

I’m trying to build 2 images. The second one depends on the first one. I’m trying to pass NGINX_IMAGE=${{build_nginx}} as a build argument, but the value comes in blank.

Is there something that I’m missing here, or do I have to construct the image name myself (which I would prefer to avoid).


the {{ build_nginx} syntax is internal to Codefresh and represents a whole image object and not just its name.

I haven’t checked it myself but I believe you should be able to use ${{build_nginx.imageId}} instead to do what you want.