Can compose push ignore some local images?

quick question:
I have a docker-compose.yml that i use to build many images.
some of these images use a builder image that is in the same .yml
when i push to AWS ECR, it tries to push the builders too, which i don’t want.
is there a way to tag these images as not to be pushable?
tried local/image-name:tag but didnt work