Stackedit/.travis.yml

35 lines
879 B
YAML
Raw Normal View History

2018-02-11 12:32:16 +00:00
language: node_js
2018-03-28 17:22:27 +00:00
2018-02-11 12:32:16 +00:00
node_js:
- "8"
2018-03-28 17:22:27 +00:00
services:
- docker
variables:
KUBECONFIG: /etc/deploy/config
2018-03-30 12:04:14 +00:00
before_deploy:
2019-07-02 09:31:14 +00:00
# Run docker build
2018-03-28 17:22:27 +00:00
- 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
2019-07-02 09:31:14 +00:00
# Install Helm
- curl -SLO https://git.io/get_helm.sh
- chmod 700 get_helm.sh
- ./get_helm.sh
- helm init --client-only
- helm repo add stackedit https://benweet.github.io/stackedit-charts/
- helm repo update
2019-07-02 09:31:14 +00:00
# Update the chart
- npm run chart
2018-03-28 17:22:27 +00:00
deploy:
provider: script
2019-07-02 09:31:14 +00:00
script: bash build/deploy.sh
2018-03-28 17:22:27 +00:00
on:
tags: true