mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Install kubectl and deploy
This commit is contained in:
parent
a439d4846f
commit
f102046ffc
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,6 +7,7 @@ yarn-debug.log*
|
||||
yarn-error.log*
|
||||
.yarn-integrity
|
||||
.eslintcache
|
||||
kubeconfig.yaml
|
||||
|
||||
/.github
|
||||
|
||||
|
||||
12
.travis.yml
12
.travis.yml
@ -47,8 +47,20 @@ after_failure:
|
||||
- chmod +x send.sh
|
||||
- ./send.sh failure $WEBHOOK_URL
|
||||
|
||||
before_deploy:
|
||||
- openssl aes-256-cbc -K $encrypted_44f54ef0bc46_key -iv $encrypted_44f54ef0bc46_iv -in kubeconfig.yaml.enc -out kubeconfig.yaml -d
|
||||
- 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
|
||||
|
||||
deploy:
|
||||
- provider: script
|
||||
script: scripts/docker_push.sh
|
||||
on:
|
||||
branch: master
|
||||
- provider: script
|
||||
script: scripts/deploy.sh
|
||||
on:
|
||||
branch: master
|
||||
|
||||
@ -1,25 +0,0 @@
|
||||
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
|
||||
Binary file not shown.
BIN
kubeconfig.yaml.enc
Normal file
BIN
kubeconfig.yaml.enc
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user