chore: Add retries for downloading kubectl in docker builds
This commit is contained in:
		
							parent
							
								
									ef2d8853c2
								
							
						
					
					
						commit
						9e4bc6e7fc
					
				|  | @ -28,7 +28,7 @@ RUN wget ${HELM_LOCATION}/${HELM_FILENAME} && \ | ||||||
| # we should be able to install using apk add. | # we should be able to install using apk add. | ||||||
| ENV KUBECTL_VERSION="v1.14.5" | ENV KUBECTL_VERSION="v1.14.5" | ||||||
| ENV KUBECTL_SHA256="26681319de56820a8467c9407e9203d5b15fb010ffc75ac5b99c9945ad0bd28c" | ENV KUBECTL_SHA256="26681319de56820a8467c9407e9203d5b15fb010ffc75ac5b99c9945ad0bd28c" | ||||||
| RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" && \ | RUN curl --retry 3 -LO "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" && \ | ||||||
|     sha256sum kubectl | grep ${KUBECTL_SHA256} && \ |     sha256sum kubectl | grep ${KUBECTL_SHA256} && \ | ||||||
|     chmod +x kubectl && \ |     chmod +x kubectl && \ | ||||||
|     mv kubectl /usr/local/bin/kubectl |     mv kubectl /usr/local/bin/kubectl | ||||||
|  |  | ||||||
|  | @ -27,7 +27,7 @@ RUN wget ${HELM_LOCATION}/${HELM_FILENAME} && \ | ||||||
| # we should be able to install using apk add. | # we should be able to install using apk add. | ||||||
| ENV KUBECTL_VERSION="v1.14.5" | ENV KUBECTL_VERSION="v1.14.5" | ||||||
| ENV KUBECTL_SHA256="26681319de56820a8467c9407e9203d5b15fb010ffc75ac5b99c9945ad0bd28c" | ENV KUBECTL_SHA256="26681319de56820a8467c9407e9203d5b15fb010ffc75ac5b99c9945ad0bd28c" | ||||||
| RUN curl -LO "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" && \ | RUN curl --retry 3 -LO "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" && \ | ||||||
|     sha256sum kubectl | grep ${KUBECTL_SHA256} && \ |     sha256sum kubectl | grep ${KUBECTL_SHA256} && \ | ||||||
|     chmod +x kubectl && \ |     chmod +x kubectl && \ | ||||||
|     mv kubectl /usr/local/bin/kubectl |     mv kubectl /usr/local/bin/kubectl | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue