diff --git a/.gitignore b/.gitignore index 18b453e6b..aad0daea8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ secrets.yaml */secrets.yaml +kubeconfig.yaml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..b39322894 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index e4d0c5396..f8cff30eb 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/kubeconfig.yaml.enc b/kubeconfig.yaml.enc new file mode 100644 index 000000000..e8db78171 Binary files /dev/null and b/kubeconfig.yaml.enc differ