Install kubectl via snap

This commit is contained in:
Robert Schäfer 2019-04-03 21:34:07 +02:00
parent bd6ddff613
commit 335d2cf1d6
2 changed files with 1 additions and 11 deletions

View File

@ -8,6 +8,7 @@ addons:
- doctl
- docker
- chromium
- 'kubectl --classic'
before_install:
- yarn global add wait-on
@ -43,7 +44,6 @@ after_success:
chmod +x tester.sh &&
./tester.sh staging $WEBHOOK_URL;
fi
- ./scripts/install_kubernetes.sh
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh

View File

@ -1,10 +0,0 @@
#!/usr/bin/env bash
# This script can be called multiple times for each `before_deploy` hook
# so let's exit successfully if kubectl is already installed:
command -v kubectl && exit 0
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