machine:
  pre:
    - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
    - docker -v
  timezone: Asia/Tokyo
  services:
    - docker

dependencies:
  cache_directories:
    - ~/.docker
  pre:
    - sudo pip install docker-compose
  override:
    - docker-compose build

test:
  pre:
    - mkdir -p $HOME/$GITHUB_REPONAME/.secret
    - echo $GCLOUD_ACCOUNT_JSON | base64 --decode > $HOME/$GITHUB_REPONAME/.secret/gcloud.json
  override:
    - ./bin/test

deployment:
  release:
    branch: release
    commands:
      - docker-compose run app ./bin/release

machine:
  pre:
    - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
    - docker -v
  timezone: Asia/Tokyo
  services:
    - docker

dependencies:
  cache_directories:
    - ~/.docker
  pre:
    - sudo pip install docker-compose

test:
  pre:
    - mkdir -p $HOME/$GITHUB_REPONAME/.secret
    - echo $GCLOUD_ACCOUNT_JSON | base64 --decode > $HOME/$GITHUB_REPONAME/.secret/gcloud.json
    - docker-compose build
  override:
    - ./bin/test

deployment:
  release:
    branch: release
    commands:
      - docker-compose run app ./bin/release

Build after creating secret file
Build after creating secret file


Former-commit-id: 536cd376c17c1c8e322fa8008acb681b061c649c