Skip to content

Commit

Permalink
install linux tool
Browse files Browse the repository at this point in the history
  • Loading branch information
realshuting committed Nov 11, 2020
1 parent f6b3dad commit 06f2fd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ $pwd/kind load docker-image nirmata/kyvernopre:$hash
pwd=$(pwd)
cd $pwd/definitions
echo "Installing kustomize"
latest=$(curl -sL https://api.github.com/repos/kubernetes-sigs/kustomize/git/refs/tags/kustomize | jq '.[-1].ref' | grep -Eo '\d+\.\d+\.\d+')
apt install -y jq
latest=$(curl -sL https://api.github.com/repos/kubernetes-sigs/kustomize/git/refs/tags/kustomize | jq '.[-1].ref' | grep -Po '\d+\.\d+\.\d+')
curl -sLO "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
bash ./install_kustomize.sh $latest
chmod a+x $pwd/definitions/kustomize
Expand Down

0 comments on commit 06f2fd8

Please sign in to comment.