Merge pull request #12 from Human-Connection/travis_ci

Deploy all the things
This commit is contained in:
Robert Schäfer 2019-03-18 15:17:48 +01:00 committed by GitHub
commit caa41f6519
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
secrets.yaml
*/secrets.yaml
kubeconfig.yaml

25
.travis.yml Normal file
View File

@ -0,0 +1,25 @@
language: generic
before_install:
- openssl aes-256-cbc -K $encrypted_87342d90efbe_key -iv $encrypted_87342d90efbe_iv
-in kubeconfig.yaml.enc -out kubeconfig.yaml -d
install:
- curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
- chmod +x ./kubectl
- sudo mv ./kubectl /usr/local/bin/kubectl
- mkdir ${HOME}/.kube
- cp kubeconfig.yaml ${HOME}/.kube/config
script:
- kubectl get nodes
deploy:
provider: script
# TODO: fix downtime
# instead of deleting all pods, update the deployment and make a rollout
# TODO: fix multiple access error on volumes
# this happens if more than two pods access a volume
script: kubectl --namespace=human-connection delete pods --all
on:
branch: master

View File

@ -1,4 +1,5 @@
# Human-Connection Nitro | Deployment Configuration
[![Build Status](https://travis-ci.com/Human-Connection/Nitro-Deployment.svg?branch=master)](https://travis-ci.com/Human-Connection/Nitro-Deployment)
Todos:
- [x] check labels and selectors if they all are correct

BIN
kubeconfig.yaml.enc Normal file

Binary file not shown.