Skip to content

Commit

Permalink
kubeconfig 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
tlsaudwl committed Jul 3, 2024
1 parent 4834cc4 commit 83de69e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 83de69e

Please sign in to comment.