Removed kubectl in deploy script

This commit is contained in:
Benoit Schweblin 2019-07-07 02:38:00 +01:00
parent f611060d05
commit 90520abf93
2 changed files with 1 additions and 15 deletions

View File

@ -6,25 +6,15 @@ node_js:
services: services:
- docker - docker
variables:
KUBECONFIG: /etc/deploy/config
before_deploy: before_deploy:
# Run docker build # Run docker build
- docker build -t benweet/stackedit . - docker build -t benweet/stackedit .
# Install Kubectl
- curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
- mkdir -p /etc/deploy
- echo ${KUBE_CONFIG} | base64 -d > ${KUBECONFIG}
- kubectl config use-context gke_stackedit-project_us-central1-a_stackedit-cluster
# Install Helm # Install Helm
- curl -SLO https://git.io/get_helm.sh - curl -SLO https://git.io/get_helm.sh
- chmod 700 get_helm.sh - chmod 700 get_helm.sh
- ./get_helm.sh - ./get_helm.sh
- helm init --client-only - helm init --client-only
- helm repo add stackedit https://benweet.github.io/stackedit-charts/ # Make the chart
- helm repo update
# Update the chart
- npm run chart - npm run chart
deploy: deploy:

View File

@ -18,7 +18,3 @@ git config user.email "benoit.schweblin@gmail.com"
git add . git add .
git commit -m "Added $TRAVIS_TAG" git commit -m "Added $TRAVIS_TAG"
git push origin master git push origin master
# Upgrade the deployed release
helm repo update
helm upgrade stackedit stackedit/stackedit