This commit is contained in:
@@ -8,9 +8,10 @@ steps:
|
|||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache curl bash ca-certificates
|
- apk add --no-cache curl bash ca-certificates
|
||||||
|
- update-ca-certificates
|
||||||
- |
|
- |
|
||||||
echo "Installing kubectl..."
|
echo "Installing kubectl..."
|
||||||
KUBECTL_VERSION=$(curl -s https://dl.k8s.io/release/stable.txt)
|
KUBECTL_VERSION=$(curl -s https://dl.k8s.io/release/stable.txt | tr -d '\n')
|
||||||
curl -LO --fail https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl
|
curl -LO --fail https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl
|
||||||
chmod +x kubectl
|
chmod +x kubectl
|
||||||
mv kubectl /usr/local/bin/
|
mv kubectl /usr/local/bin/
|
||||||
|
|||||||
Reference in New Issue
Block a user