use official install steps
This commit is contained in:
@@ -11,10 +11,8 @@ steps:
|
|||||||
- update-ca-certificates
|
- update-ca-certificates
|
||||||
- |
|
- |
|
||||||
echo "Installing kubectl..."
|
echo "Installing kubectl..."
|
||||||
KUBECTL_VERSION=$(curl -sL https://dl.k8s.io/release/stable.txt | tr -d '\n')
|
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
|
||||||
curl -LO --fail https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl
|
install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
|
||||||
chmod +x kubectl
|
|
||||||
mv kubectl /usr/local/bin/
|
|
||||||
- |
|
- |
|
||||||
echo "Validating Kubernetes manifests with kubectl dry-run..."
|
echo "Validating Kubernetes manifests with kubectl dry-run..."
|
||||||
for file in $(find . -maxdepth 1 -type f \( -name '*.yaml' -o -name '*.yml' \)); do
|
for file in $(find . -maxdepth 1 -type f \( -name '*.yaml' -o -name '*.yml' \)); do
|
||||||
|
|||||||
Reference in New Issue
Block a user