mirror of
https://github.com/luzifer-docker/kubectl.git
synced 2024-11-09 15:40:01 +00:00
Fix update detection
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
d323ed7a12
commit
844520db06
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ git reset --hard origin/master
|
||||||
### ---- ###
|
### ---- ###
|
||||||
|
|
||||||
version=$(curl -s "https://lv.luzifer.io/v1/catalog/kubernetes/latest/version")
|
version=$(curl -s "https://lv.luzifer.io/v1/catalog/kubernetes/latest/version")
|
||||||
grep -q "KUBECTL_VERSION=${version}$" Dockerfile && exit 0 || echo "Update required"
|
grep -q "KUBECTL_VERSION=v${version}$" Dockerfile && exit 0 || echo "Update required"
|
||||||
|
|
||||||
sed -Ei \
|
sed -Ei \
|
||||||
-e "s/KUBECTL_VERSION=v[0-9.]+/KUBECTL_VERSION=v${version}/" \
|
-e "s/KUBECTL_VERSION=v[0-9.]+/KUBECTL_VERSION=v${version}/" \
|
||||||
|
|
Loading…
Reference in a new issue