Adjust base64 params to be more portable (alpine compatible)

This commit is contained in:
Devon Mackay 2018-09-10 09:54:25 -04:00 committed by Patrick Smith
parent 2ec2a22db0
commit 7e0b3ce520

View File

@ -9,7 +9,7 @@ set -o nounset
# set -o xtrace
# Decode and save the K8S CA cert
echo "${K8S_CA_CRT}" | base64 --decode -i > "${HOME}/k8s_ca.crt"
echo "${K8S_CA_CRT}" | base64 -d - > "${HOME}/k8s_ca.crt"
# Setup the local kubectl client
kubectl config set-context travis \
@ -22,7 +22,7 @@ kubectl config set-cluster atat-cluster \
--server="${K8S_ENDPOINT}" \
--certificate-authority="${HOME}/k8s_ca.crt"
kubectl config set-credentials atat-deployer --token=`echo ${K8S_USER_TOKEN} | base64 --decode`
kubectl config set-credentials atat-deployer --token="$(echo ${K8S_USER_TOKEN} | base64 -d -)"
kubectl config use-context travis
kubectl config current-context