Hi, we’re evaluating drone for CI self-host solution and compare with different solutions like CircleCI. I just want to know if Drone support isolated database-level build just like concurrent container concept of CircleCI.
I means, if there are multiple builds, it should run in concurrent, and database running with different build should be isolated as well.
here’s the .drone.yml file I have right now, for example, the build “frontend” and “backend” should be isolated, and can be trigger in different drone-agent ( agents should be spread in different vm, so that the machine vm can use full resources of vm to run single build ). Is it possible to do that in Drone?
pipeline:
restore-cache:
image: drillster/drone-volume-cache
restore: true
mount:
- ./node_modules
- ./vender/bundle
- ./cache/yarn
volumes:
- /tmp/cache:/cache
backend:
image: example_images:latest
group: build
commands:
- bundle install --path vender/bundle
- yarn install --cache-folder cache/yarn
- bundle exec rake db:create
- bundle exec rake db:schema:load
- bundle exec rake assets:precompile RAILS_ENV=test
- bundle exec rake test:backend
frontend:
image: example_images:latest
group: build
commands:
- bundle install --path vender/bundle
- yarn install --cache-folder cache/yarn
- bundle exec rake db:create
- bundle exec rake db:schema:load
- bundle exec rake assets:precompile RAILS_ENV=test
- bundle exec rake test:frontend
rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount:
- ./node_modules
- ./vender/bundle
- ./cache/yarn
volumes:
- /tmp/cache:/cache
services:
postgres:
image: postgres:9.6.2-alpine