-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (41 loc) · 1.48 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
33
34
35
36
37
38
39
40
41
42
sudo: required
language: go
branches:
only:
- master
services:
- docker
env:
global:
- DOCKER_REPO=marianferenc/goland_expedition:latest
- HELM_URL=https://storage.googleapis.com/kubernetes-helm
- HELM_TGZ=helm-v2.4.1-linux-amd64.tar.gz
- YAMLLINT_VERSION=1.8.1
- CLOUDSDK_CORE_DISABLE_PROMPTS=1
- GCLOUD_PROJECT=atvi2-react
before_install:
- openssl aes-256-cbc -K $encrypted_4e3e4fdb1ecb_key -iv $encrypted_4e3e4fdb1ecb_iv -in atvi2-react-ae8746f5e496.json.enc -out atvi2-react-ae8746f5e496.json -d
install:
- wget -q ${HELM_URL}/${HELM_TGZ}
- tar xzfv ${HELM_TGZ}
- PATH=`pwd`/linux-amd64/:$PATH
- helm init --client-only
- sudo pip install yamllint=="${YAMLLINT_VERSION}"
- curl https://sdk.cloud.google.com | bash > /dev/null
- source $HOME/google-cloud-sdk/path.bash.inc
- gcloud components install kubectl
- gcloud auth activate-service-account --key-file=atvi2-react-ae8746f5e496.json
- gcloud container clusters get-credentials standard-cluster-1 --zone us-central1-a
--project atvi2-react
- ./ibmcloud login --apikey $ibmcloudapikey -r eu-de
- ./ibmcloud cf install -f
- ./ibmcloud target --cf-api https://api.eu-de.bluemix.net -o [email protected] -s dev
jobs:
include:
- stage: push docker image to dockerhub
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build -t $DOCKER_REPO .
- docker push $DOCKER_REPO
- helm install --name goland charts/goland_expedition
- ./ibmcloud cf push -f manifest.yml