Skip to content

Commit

Permalink
Update kubectl dowload url
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew DeVenny <[email protected]>
  • Loading branch information
matthewdevenny committed Nov 22, 2024
1 parent aa913e1 commit 86424c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/image-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ name: image-update
on:
schedule:
- cron: '20 6 * * *'

#on:
# push:
# branches:
# - master
# - feature/gha
push:
branches:
- master
- feature/update-kubectl-url

jobs:
base-image-digest:
Expand All @@ -27,7 +25,7 @@ jobs:
- command: kubectl
base: alpine
repo: "https://github.com/kubernetes/kubernetes.git"
check: "https://storage.googleapis.com/kubernetes-release/release/v${VERSION}/bin/linux/amd64/kubectl"
check: "https://dl.k8s.io/release/v${VERSION}/bin/linux/amd64/kubectl"
semverRange: ">=1.28.0"
- command: lego
base: alpine
Expand Down
2 changes: 1 addition & 1 deletion kubectl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ARG TARGETOS
ARG TARGETARCH
ARG VERSION
RUN curl -SsL -o /usr/local/bin/kubectl \
"https://storage.googleapis.com/kubernetes-release/release/v${VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl" \
"https://dl.k8s.io/release/v${VERSION}/bin/${TARGETOS}/${TARGETARCH}/kubectl" \
&& chmod +x /usr/local/bin/kubectl

WORKDIR /home/alpine
Expand Down

0 comments on commit 86424c5

Please sign in to comment.