version: "3"
services:
  python-unittest:
    build: .
    volumes:
      - ../..:/image/catapult:ro
    command: [/catapult/dashboard/bin/run_py_tests]
  deploy-dashboard:
    build: .
    volumes:
      - ../..:/image/catapult:ro
      - gcloud-config:/root/.config/gcloud
    command: [/catapult/dashboard/bin/deploy, --promote, app.yaml]
  deploy-pinpoint:
    build: .
    volumes:
      - ../..:/image/catapult:ro
      - gcloud-config:/root/.config/gcloud
    command: [/catapult/dashboard/bin/deploy, --promote, pinpoint.yaml]
  auth:
    build: .
    volumes:
      - gcloud-config:/root/.config/gcloud
    command: [bash, -xc, "gcloud auth login && gcloud config set project chromeperf"]
networks:
  default:
    external:
      name: host
volumes:
  gcloud-config:

version: "3"
services:
  python-unittest:
    build: .
    volumes:
      - ../..:/image/catapult:ro
    command: [/catapult/dashboard/bin/run_py_tests]
  deploy-dashboard:
    build: .
    volumes:
      - ../..:/image/catapult:ro
      - gcloud-config:/root/.config/gcloud
    command: [/catapult/dashboard/bin/deploy, --promote, app.yaml, api.yaml, upload.yaml]
  deploy-pinpoint:
    build: .
    volumes:
      - ../..:/image/catapult:ro
      - gcloud-config:/root/.config/gcloud
    command: [/catapult/dashboard/bin/deploy, --promote, pinpoint.yaml]
  auth:
    build: .
    volumes:
      - gcloud-config:/root/.config/gcloud
    command: [bash, -xc, "gcloud auth login && gcloud config set project chromeperf"]
networks:
  default:
    external:
      name: host
volumes:
  gcloud-config:

Add Dashboard-related services to deploy-dashboard
Add Dashboard-related services to deploy-dashboard

The Dashboard is no longer a single service, so when deploying, always
deploy the 'api' and 'upload' services alongside the default service.

R=abennetts@google.com, ade7e59805b81f027d537665b2c12c1956198b97@chromium.org

Change-Id: I4acdb55293599dcf1ae1fc2ce3c73aa8bbc74379
Reviewed-on: https://chromium-review.googlesource.com/c/catapult/+/1951280
Auto-Submit: Dean Berris <34a37f59e4ade3cf49221306f04217acf3e86255@chromium.org>
Reviewed-by: Chenlin Fan <ade7e59805b81f027d537665b2c12c1956198b97@chromium.org>
Commit-Queue: Chenlin Fan <ade7e59805b81f027d537665b2c12c1956198b97@chromium.org>
