-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (27 loc) · 1.08 KB
/
.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
sudo: required
services:
- docker
env:
- global:
- SHA=$(git rev-parse HEAD)
- CLOUDSDK_CORE_DISABLE_PROMPTS=1
before_install:
- openssl aes-256-cbc -K $encrypted_0c35eebf403c_key -iv $encrypted_0c35eebf403c_iv -in constant-crow-222204-2b2a815bdea2.json.enc -out constant-crow-222204-2b2a815bdea2.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 constant-crow-222204-2b2a815bdea2.json
- gcloud config set project constant-crow-222204
- gcloud config set compute/zone asia-south1-a
- gcloud container clusters get-credentials standard-cluster-1
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build -t aishwarydhare/hellonode .
- docker build -t aishwarydhare/helloredis -f Dockerfile.redis .
script:
- docker run aishwarydhare/hellonode echo 1
- docker run aishwarydhare/hellonode echo 2
deploy:
provider: script
script: bash ./deploy.sh
on:
branch: master