version: 0.2

env:
  variables:
    DOCKER_HOST: tcp://127.0.0.1:2375
phases:
  build:
    commands:
      - echo Build started on `date`
      - echo Building the Docker image...          
      - docker-compose version
      - docker-compose build
      - docker-compose run -e RAILS_ENV=test web rails db:migrate
      - docker-compose run -e RAILS_ENV=test web rspec
      - docker-compose save splits-io_web | gzip -c > web.tar.gz
      - docker-compose save splits-io_worker | gzip -c > worker.tar.gz
  post_build:
    commands:
      - echo Build completed! wixSanic

version: 0.2

env:
  variables:
    DOCKER_HOST: tcp://127.0.0.1:2375
phases:
  build:
    commands:
      - echo Build started on `date`
      - echo Building the Docker image...          
      - docker-compose version
      - docker-compose build
      - docker-compose run -e RAILS_ENV=test web rails db:migrate
      - docker-compose run -e RAILS_ENV=test web rspec
      - docker-compose save splits-io_web | web.tar
      - docker-compose save splits-io_worker | worker.tar
      - zip dist.zip web.tar worker.tar
  post_build:
    commands:
      - echo Build completed! wixSanic

Use one dist file, not two
Use one dist file, not two
