forked from google/WebFundamentals
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
27 lines (27 loc) · 827 Bytes
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Note: if you modify this file, don't forget to update
# checksum in .drone.sec with:
# drone secure --repo google/WebFundamentals --checksum
clone:
depth: 1
cache:
mount:
- node_modules
build:
image: b.gcr.io/wf-ci-images/drone:20160928
commands:
- npm install -qq
- gulp presubmit
- gulp build
deploy:
bash:
when:
repo: google/WebFundamentals
branch: master
image: crhym3/drone-plugin-bash-node
env:
- ROBOT_PASSPHRASE=$$ROBOT_PASSPHRASE
script:
- gpg --no-use-agent --output tools/builder-key.json --passphrase $ROBOT_PASSPHRASE tools/builder-key.json.enc
- gcloud config set project web-central
- gcloud auth activate-service-account --key-file=tools/builder-key.json
- gcloud preview app deploy app.yaml -q --no-promote --version master