Build docker images as folder name and push

i have 5 folders and sub folders and inside folder docker images. And i need add into circleci config.yml file snyk/scan for every image inside folder and push every one to docker hub. Thanks.

Source: StackOverflow