language: bash services: - docker script: - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - for dir in $PWD/*/; do cd $dir; docker build -t=$DOCKER_USERNAME/${dir##*/} .; docker push $DOCKER_USERNAME/${dir##*/}; cd ..; done