mirror of
				https://github.com/honestbee/drone-kubernetes.git
				synced 2025-11-04 02:58:04 +00:00 
			
		
		
		
	Merge c5abdcb6f1 into a5776c44e9
				
					
				
			This commit is contained in:
		
						commit
						3d9febb426
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
FROM alpine:3.4
 | 
			
		||||
FROM alpine:latest
 | 
			
		||||
RUN apk --no-cache add curl ca-certificates bash
 | 
			
		||||
RUN curl -Lo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
 | 
			
		||||
RUN chmod +x /usr/local/bin/kubectl
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -20,7 +20,7 @@ if [ ! -z ${PLUGIN_KUBERNETES_CERT} ]; then
 | 
			
		|||
  KUBERNETES_CERT=${PLUGIN_KUBERNETES_CERT}
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
kubectl config set-credentials default --token=${KUBERNETES_TOKEN}
 | 
			
		||||
kubectl config set-credentials $PLUGIN_KUBERNETES_USER --token=${KUBERNETES_TOKEN}
 | 
			
		||||
if [ ! -z ${KUBERNETES_CERT} ]; then
 | 
			
		||||
  echo ${KUBERNETES_CERT} | base64 -d > ca.crt
 | 
			
		||||
  kubectl config set-cluster default --server=${KUBERNETES_SERVER} --certificate-authority=ca.crt
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue