mirror of
https://github.com/honestbee/drone-kubernetes.git
synced 2025-05-13 08:03:17 +00:00
Arrays are converted to strings
This commit is contained in:
parent
210c92f1e6
commit
995b37fe1a
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ kubectl config set-cluster default --server=${KUBERNETES_SERVER} --insecure-skip
|
|||
kubectl config set-context default --cluster=default --user=default
|
||||
kubectl config use-context default
|
||||
|
||||
DEPLOYMENTS=$(echo $PLUGIN_DEPLOYMENT|tr -d '[],')
|
||||
IFS=', ' read -r -a DEPLOYMENTS <<< "$PLUGIN_DEPLOYMENT"
|
||||
for DEPLOY in ${DEPLOYMENTS[@]}; do
|
||||
kubectl -n ${PLUGIN_NAMESPACE} set image deployment/${DEPLOY} \
|
||||
${PLUGIN_CONTAINER}=${PLUGIN_REPO}:${PLUGIN_TAG}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue