From 271efba13619dfcecf3a3f88c3a7988726d6773a Mon Sep 17 00:00:00 2001 From: gitjiho Date: Sun, 5 Jan 2025 22:25:00 +0900 Subject: [PATCH] =?UTF-8?q?deploy:=20=EB=A1=A4=EB=A7=81=EC=97=85=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=8A=B8=20=ED=9B=84=EC=97=90=20=EC=8B=A4=ED=96=89?= =?UTF-8?q?=EC=A4=91=EC=9D=B8=20pod=EB=A5=BC=20=EC=A0=9C=EC=99=B8=ED=95=9C?= =?UTF-8?q?=20pods=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-push-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-push-deploy.yml b/.github/workflows/docker-push-deploy.yml index 4c7fda6..78459d1 100644 --- a/.github/workflows/docker-push-deploy.yml +++ b/.github/workflows/docker-push-deploy.yml @@ -76,4 +76,4 @@ jobs: - name: Delete old Pods after successful rollout run: | NEW_POD=$(kubectl get pods -l app=knutoyproject -o jsonpath='{.items[?(@.status.phase=="Running")].metadata.name}' --kubeconfig ~/.kube/config --insecure-skip-tls-verify | head -n 1) - kubectl get pods -l app=knutoyproject --kubeconfig ~/.kube/config --insecure-skip-tls-verify -o jsonpath='{.items[?(@.metadata.name!="'$NEW_POD'")].metadata.name}' | xargs kubectl delete pod --kubeconfig ~/.kube/config --insecure-skip-tls-verify + kubectl get pods -l app=knutoyproject --kubeconfig ~/.kube/config --insecure-skip-tls-verify -o jsonpath='{.items[?(@.metadata.name!="'"$NEW_POD"'")].metadata.name}' | xargs -I {} kubectl delete pod {} --kubeconfig ~/.kube/config --insecure-skip-tls-verify