fix: install kubectl in deploy-to-k8s job
This commit is contained in:
@@ -80,6 +80,12 @@ jobs:
|
||||
echo "${{ secrets.KUBECONFIG_DATA }}" | base64 -d > ~/.kube/config
|
||||
chmod 600 ~/.kube/config
|
||||
|
||||
- name: Install kubectl
|
||||
run: |
|
||||
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
|
||||
chmod +x kubectl
|
||||
mv kubectl /usr/local/bin/
|
||||
|
||||
- name: Trigger Kubernetes Rollout
|
||||
run: |
|
||||
# Перезапускаем поды, чтобы они скачали свежий :main образ
|
||||
@@ -88,3 +94,4 @@ jobs:
|
||||
# Ждём успешного обновления
|
||||
kubectl rollout status deployment/backend -n magistr --timeout=120s
|
||||
kubectl rollout status deployment/frontend -n magistr --timeout=120s
|
||||
|
||||
|
||||
Reference in New Issue
Block a user