-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
27 lines (26 loc) · 964 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
services:
- docker
env:
global:
- NAMESPACE=app-system
- SHA=$(git rev-parse HEAD)
- CLOUDSDK_CORE_DISABLE_PROMPTS=1
before_install:
- openssl aes-256-cbc -K $encrypted_9f3b5599b056_key -iv $encrypted_9f3b5599b056_iv -in service-account.json.enc -out service-account.json -d
- curl https://sdk.cloud.google.com | bash > /dev/null;
- source $HOME/google-cloud-sdk/path.bash.inc
- gcloud components update kubectl
- gcloud auth activate-service-account --key-file service-account.json
- gcloud config set project app-in-k8s
- gcloud config set compute/zone europe-central2-a
- gcloud container clusters get-credentials app-cluster
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- docker build -t mroobert/react-test -f ./client/Dockerfile.dev ./client
script:
- docker run -e CI=true mroobert/react-test npm test
deploy:
skip_cleanup: true
provider: script
script: bash ./deploy.sh
on:
branch: main