1
0
Fork 0
mirror of https://github.com/honestbee/drone-kubernetes.git synced 2025-05-24 13:53:19 +00:00

First version

This commit is contained in:
Charles Martinot 2017-01-13 18:07:48 +08:00
parent 4fb115dcd7
commit 4490e740d3
3 changed files with 49 additions and 2 deletions

9
update.sh Normal file
View file

@ -0,0 +1,9 @@
#!/bin/sh
kubectl config set-credentials default --token=${KUBERNETES_TOKEN}
kubectl config set-cluster default --server=${KUBERNETES_SERVER} --insecure-skip-tls-verify=true
kubectl config set-context default --cluster=default --user=default
kubectl config use-context default
kubectl set image deployment/${PLUGIN_DEPLOYMENT} ${PLUGIN_NAME}=${PLUGIN_REPO}:${PLUGIN_TAG}
#TODO : Identify a good way to identify IMAGE_NAME and PLUGIN_DEPLOY_IMAGE