-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.travis.yml
35 lines (29 loc) · 1.01 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
sudo: required
language: go
go:
- "1.12.5"
services:
- docker
env:
global:
- SHA=$(git rev-parse HEAD)
install:
- sed -i -e 's|KUBECTL_CERT_AUTH_DATA|'"${KUBECTL_CERT_AUTH_DATA}"'|g' kubeconfig
- sed -i -e 's|KUBECTL_SERVER|'"${KUBECTL_SERVER}"'|g' kubeconfig
- sed -i -e 's|KUBECTL_USER_CERT_DATA|'"${KUBECTL_USER_CERT_DATA}"'|g' kubeconfig
- sed -i -e 's|KUBECTL_USER_CLIENT_DATA|'"${KUBECTL_USER_CLIENT_DATA}"'|g' kubeconfig
- sed -i -e 's|KUBECTL_ADMIN_PASSWORD|'"${KUBECTL_ADMIN_PASSWORD}"'|g' kubeconfig
- 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 ~/.kube
- cp kubeconfig ~/.kube/config
before_script:
- docker login -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}"
script:
- echo "Skipping tests"
deploy:
- provider: script
script: bash ./deploy.sh
on:
branch: master