From 83de69e56ac50262ecab7b81a4eceb311bc7e479 Mon Sep 17 00:00:00 2001 From: tlsaudwl Date: Wed, 3 Jul 2024 10:21:54 +0900 Subject: [PATCH] =?UTF-8?q?kubeconfig=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5737519..a0a814d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -46,10 +46,16 @@ jobs: run: | mkdir -p $HOME/.kube echo "${{ secrets.KUBECONFIG }}" > $HOME/.kube/config + env: + KUBECONFIG: $HOME/.kube/config - name: Delete old pods run: kubectl delete pods -l app=hanalink-spring-boot-app + env: + KUBECONFIG: $HOME/.kube/config - name: Deploy to Kubernetes run: | kubectl set image deployment/hanalink-spring-boot-app hanalink-spring-boot-app=${{ secrets.DOCKER_USERNAME }}/hanalink-spring-boot:latest + env: + KUBECONFIG: $HOME/.kube/config