[solved] Publish multiple docker images

Is it possible to publish multiple docker images in a single build? For example, if there are several subdirectories with their own Dockerfiles, and each needs to be published to its own repo on ECR with its own tag

we actually doing something like that, you just need to add several docker section in your pipeline.
for example:

pipeline:
  build:
    image: dockerunitest:latest
    branches:
      exclude: [master]

  docker:
    image: plugins/docker
    repo: ${DOCKER_REGISTRY}/php53
    tag: ${DRONE_COMMIT_BRANCH/php53/latest}
    file: Dockerfile
    when:
      repo: docker_php
      branch: [php53]
     #environment:
     # - DOCKER_LAUNCH_DEBUG=true

  docker:
    image: plugins/docker
    repo: ${DOCKER_REGISTRY}/php53
    tag: ${DRONE_COMMIT_BRANCH/php53test/test}
    file: Dockerfile
    when:
      repo: docker_php
      branch: [php53test]
     #environment:
     # - DOCKER_LAUNCH_DEBUG=true

Hoping this helps,

That works? It doesn’t collapse down to a single docker key like it would in json?

Step names are arbitrary. You can call them whatever you want and you can even duplicate key values. There is no requirement that yaml key values must be unique. It is recommended by the specification, but not required.

Hi Guys;
how can i place this command in drone.yml to start 2 docker container at once.

docker run -it --privileged -d --name citest Alpine-dind:master && docker run -it --rm --link citest:docker ubuntu16dind:latest sh

any help plz?