version: 2
jobs:
  build:
    working_directory: /tmp/build
    docker:
      - image: alpine
    steps:
      - checkout
      - setup_remote_docker
      - deploy:
          name: Publish to Docker Hub
          command: |
            if [ "${CIRCLE_BRANCH}" == "master" ]; then
              apk --no-cache add docker bash
              docker login -u ${DOCKER_LOGIN} -p ${DOCKER_PASSWORD}
              sh ./build_multiple.sh
            fi
Build tags (and older versions) with circleci
Build tags (and older versions) with circleci
