-
Notifications
You must be signed in to change notification settings - Fork 1
/
old.travis.yml
40 lines (39 loc) · 1.37 KB
/
old.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
29
30
31
32
33
34
35
36
37
38
39
40
language: node_js
node_js:
- 10
services:
- docker
before_install:
- openssl aes-256-cbc -K $encrypted_87a2a466c227_key -iv $encrypted_87a2a466c227_iv -in travis-key.json.enc -out travis-key.json -d
- cat travis-key.json | docker login -u _json_key --password-stdin https://gcr.io
- >
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;
source /home/travis/google-cloud-sdk/path.bash.inc;
gcloud --quiet version;
gcloud --quiet components update;
gcloud --quiet components update kubectl;
fi
- source /home/travis/google-cloud-sdk/path.bash.inc
- gcloud auth activate-service-account --key-file travis-key.json
- rm travis-key.json
- gcloud container clusters get-credentials standard-cluster-1 --zone us-east4-a --project poised-cortex-254814
install:
- yarn install --frozen-lockfile
- yarn fa:build --dest=docs
- yarn docs:build
- docker build . -t gcr.io/poised-cortex-254814/webservice-docs
- docker push gcr.io/poised-cortex-254814/webservice-docs
- sleep 1
- kubectl apply -f kubectl.yml
- kubectl wait --for=condition=complete --timeout=30s job/docs-copy
- kubectl delete -f kubectl.yml
script:
- echo "done"
cache:
yarn: true
directories:
- node_modules
- "$HOME/google-cloud-sdk/"