forked from actions-hub/kubectl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use pre-downloaded kubectl file
- Loading branch information
1 parent
2dce736
commit e1e4d43
Showing
4 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
FROM alpine:3.19 | ||
LABEL MAINTAINER="erguotou <[email protected]>" | ||
|
||
ARG KUBE_VERSION="v1.29.2" | ||
# ARG KUBE_VERSION="v1.29.2" | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
COPY kubectl /usr/local/bin/kubectl | ||
RUN chmod +x /entrypoint.sh && \ | ||
apk add --no-cache --update openssl curl ca-certificates && \ | ||
curl -L https://storage.googleapis.fireboom.io/kubernetes-release/release/$KUBE_VERSION/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl && \ | ||
# curl -L https://storage.googleapis.com/kubernetes-release/release/$KUBE_VERSION/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl && \ | ||
chmod +x /usr/local/bin/kubectl && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
curl -o kubectl https://storage.googleapis.com/kubernetes-release/release/v1.29.2/bin/linux/amd64/kubectl |