From 7a4fdf12eb1335a299802231b3ff10170cbe3114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Sat, 2 Mar 2019 21:05:14 +0100 Subject: [PATCH] Deploy by deleting all pods For now let's have it on all branches and check if it works. I will change the line once it works. --- .travis.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.travis.yml b/.travis.yml index d0e134388..b20c2f2b5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +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: + all_branches: true