feat: add kubectl download
This commit is contained in:
4
.github/workflows/deploy-gke-cronjob.yml
vendored
4
.github/workflows/deploy-gke-cronjob.yml
vendored
@@ -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
|
||||
|
||||
4
.github/workflows/deploy-gke.yml
vendored
4
.github/workflows/deploy-gke.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user