forked from weng-lab/logojs-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (28 loc) · 838 Bytes
/
.travis.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
28
dist: trusty
sudo: required
language: node_js
node_js: 10.16
cache:
directories:
# We cache gcloud so we don't have to download it again on subsequent builds.
- $HOME/google-cloud-sdk
services:
- docker
script:
- scripts/build-local.sh
- scripts/build-image.sh $TRAVIS_TAG
before_deploy:
- if [ ! -d "$HOME/google-cloud-sdk/bin" ]; then rm -rf $HOME/google-cloud-sdk; export CLOUDSDK_CORE_DISABLE_PROMPTS=1; curl https://sdk.cloud.google.com | bash >/dev/null; fi
- source /home/travis/google-cloud-sdk/path.bash.inc
- gcloud --quiet version
- gcloud --quiet components update
- gcloud --quiet components update kubectl
deploy:
- provider: script
script: scripts/push-image.sh $TRAVIS_TAG
on:
tags: true
- provider: script
script: scripts/deploy.sh staging $TRAVIS_TAG
on:
tags: true