feat: add kubectl download

This commit is contained in:
Gusram
2025-07-01 16:56:15 +08:00
parent fa399a2263
commit 64a9b53ba2
2 changed files with 8 additions and 0 deletions

View File

@@ -48,4 +48,8 @@ jobs:
APPTARGET: ${{inputs.app-target}}
TAG: ${{inputs.image-tag}}
run: |
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x kubectl
mv kubectl /usr/local/bin/
cd ~
kubectl set image cronjob/$APP $APPTARGET=$REGISTRY:$TAG

View File

@@ -48,5 +48,9 @@ jobs:
APPTARGET: ${{inputs.app-target}}
TAG: ${{inputs.image-tag}}
run: |
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x kubectl
mv kubectl /usr/local/bin/
cd ~
kubectl set image deployment/$APP $APPTARGET=$REGISTRY:$TAG
kubectl rollout restart deployment/$APP