Skip to content

Commit 86424c5

Browse files
Update kubectl dowload url
Signed-off-by: Matthew DeVenny <[email protected]>
1 parent aa913e1 commit 86424c5

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/image-update.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ name: image-update
22
on:
33
schedule:
44
- cron: '20 6 * * *'
5-
6-
#on:
7-
# push:
8-
# branches:
9-
# - master
10-
# - feature/gha
5+
push:
6+
branches:
7+
- master
8+
- feature/update-kubectl-url
119

1210
jobs:
1311
base-image-digest:
@@ -27,7 +25,7 @@ jobs:
2725
- command: kubectl
2826
base: alpine
2927
repo: "https://github.com/kubernetes/kubernetes.git"
30-
check: "https://storage.googleapis.com/kubernetes-release/release/v${VERSION}/bin/linux/amd64/kubectl"
28+
check: "https://dl.k8s.io/release/v${VERSION}/bin/linux/amd64/kubectl"
3129
semverRange: ">=1.28.0"
3230
- command: lego
3331
base: alpine

kubectl/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ARG TARGETOS
1515
ARG TARGETARCH
1616
ARG VERSION
1717
RUN curl -SsL -o /usr/local/bin/kubectl \
18-
"https://storage.googleapis.com/kubernetes-release/release/v${VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl" \
18+
"https://dl.k8s.io/release/v${VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl" \
1919
&& chmod +x /usr/local/bin/kubectl
2020

2121
WORKDIR /home/alpine

0 commit comments

Comments
 (0)