🐛 Fixup kubectl build

This commit is contained in:
Ettore Di Giacinto 2022-03-05 12:28:58 +01:00
parent 531d358083
commit ab434559d6
2 changed files with 10 additions and 3 deletions

View File

@ -7,7 +7,13 @@ package_dir: /kubectl
steps:
- |
apk add bash && \
PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && \
mkdir -p /kubectl/usr/bin && \
curl -L https://storage.googleapis.com/kubernetes-release/release/v${PACKAGE_VERSION}/bin/linux/{{.Values.arch}}/kubectl -o /kubectl/usr/bin/kubectl && \
curl -LO "https://dl.k8s.io/release/v$PACKAGE_VERSION/bin/linux/{{.Values.arch}}/kubectl" && \
curl -LO "https://dl.k8s.io/v$PACKAGE_VERSION/bin/linux/{{.Values.arch}}/kubectl.sha256" && \
cat kubectl.sha256 && \
ls -liah && \
/bin/bash -c 'echo "$(<kubectl.sha256) kubectl" | sha256sum -c' && \
mv kubectl /kubectl/usr/bin && \
chmod +x /kubectl/usr/bin/kubectl

View File

@ -1,6 +1,7 @@
name: kubectl
category: container
version: "1.23.1+0"
version: "1.23.4+0"
arch: "amd64"
labels:
github.repo: "kubectl"
github.owner: "kubernetes"
@ -9,7 +10,7 @@ labels:
autobump.prefix: "prefix"
autobump.hook: "curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt | sed 's/v//'"
autobump.version_hook: "curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt | sed 's/v//'"
package.version: "1.23.1"
package.version: "1.23.4"
uri:
- https://github.com/kubernetes/kubernetes
- https://kubernetes.io