clone:
    git:
        image: plugins/git
        tags: true
pipeline:
    build:
        image: plugins/docker
        repo: datafari/ce_build
        tags:
            - latest
            - "${DRONE_COMMIT_SHA}"
        secrets: [ docker_username, docker_password ]
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock
        when:
          branch: master
    build-release:
        image: plugins/docker
        repo: datafari/ce_build
        auto_tag: true
        secrets: [ docker_username, docker_password ]
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock
        when:
          event: tag
    notify:
        image: drillster/drone-email
        from : noreply@datafari.com
        skip_verify: true
        when:
            status: [ success, failure ]
        secrets: [ email_username, email_password, email_port, email_host, email_recipients ]
    ssh:
        image: appleboy/drone-ssh
        secrets: [ ssh_host, ssh_username, ssh_key, ssh_port ]
        script:
          - cd /var/work/dockerswarm/datafariee && docker stack deploy -c datafariee.yml datafariee --with-registry-auth
clone:
    git:
        image: plugins/git
        tags: true
pipeline:
    build:
        image: plugins/docker
        repo: datafari/ce_build
        tags:
            - latest
            - "${DRONE_COMMIT_SHA}"
        secrets: [ docker_username, docker_password ]
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock
        when:
          branch: master
    build-release:
        image: plugins/docker
        repo: datafari/ce_build
        auto_tag: true
        secrets: [ docker_username, docker_password ]
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock
        when:
          event: tag
    notify:
        image: drillster/drone-email
        from : noreply@datafari.com
        skip_verify: true
        when:
            status: [ success, failure ]
        secrets: [ email_username, email_password, email_port, email_host, email_recipients ]
    ssh:
        image: appleboy/drone-ssh
        secrets: [ ssh_host, ssh_username, ssh_key, ssh_port ]
        script:
          - cd /var/work/dockerswarm/datafarice && docker stack deploy -c datafarice.yml datafarice --with-registry-auth

Fix deployment DatafariCE into Drone configuration
Fix deployment DatafariCE into Drone configuration
