blob: 4fd1845b6d31d7e867f70935ac67739839e85a39 [file] [log] [blame]
# Copyright 2020 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
timeout: 30m
options:
machineType: N1_HIGHCPU_8
steps:
- id: all.bash
name: gcr.io/$PROJECT_ID/docker-compose
entrypoint: devtools/docker/compose.sh
args:
- run
- allbash
- ci
- id: Prepare
name: gcr.io/cloud-builders/gcloud
entrypoint: deploy/prepare.sh
args:
- $PROJECT_ID
- id: Check redistributable
name: golang:1.16.7
entrypoint: private/devtools/check_redist.sh
- id: Build
name: gcr.io/cloud-builders/docker
entrypoint: sh
args:
- -c
- deploy/build.sh $PROJECT_ID $(cat _BUILD_TAG)
- id: Config
name: gcr.io/cloud-builders/gsutil
entrypoint: deploy/config.sh
args:
- $_ENV
- id: Worker
name: gcr.io/cloud-builders/gke-deploy
entrypoint: sh
args:
- -c
- deploy/worker.sh $_ENV gcr.io/$PROJECT_ID/worker:$(cat _BUILD_TAG)
- id: Frontend
name: gcr.io/cloud-builders/gcloud
entrypoint: sh
args:
- -c
- deploy/frontend.sh $_ENV gcr.io/$PROJECT_ID/frontend:$(cat _BUILD_TAG)
- id: Pagecheck
name: golang:1.16.7
entrypoint: sh
args:
- -c
- private/devtools/pagecheck.sh -idtok $(cat _ID_TOKEN) $_ENV