---
version: '3'

tasks:
  load:custom-engines:
    deps:
      - :install:software:docker
    env:
      CUSTOM_ENGINES:
        sh: |
          echo 'editorconfig'
          echo 'eslint'
    cmds:
      - |
        for ENGINE in "$CUSTOM_ENGINES"; do
          docker pull "{{.DOCKERHUB_PROFILE}}/codeclimate-$ENGINE" &
          docker tag "{{.DOCKERHUB_PROFILE}}/codeclimate-$ENGINE" "codeclimate/codeclimate-$ENGINE"
        done
        wait
