Skip to content

Commit

Permalink
Added Continous Deployment to Kubernetes.
Browse files Browse the repository at this point in the history
  • Loading branch information
GautamPatil1 committed Apr 7, 2024
1 parent 903ab7d commit 8ab9dc3
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ jobs:
docker tag gautampatil1/rezume:latest ghcr.io/gautampatil1/rezume:latest
docker push ghcr.io/gautampatil1/rezume:latest
- name: cluster restart
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script: |
minikube start --driver=docker
- name: SSH into instance and restart Minikube
run: |
ssh-keyscan -H ${{ secrets.HOST }} >> ~/.ssh/known_hosts
chmod 600 ~/.ssh/id_rsa
ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa ${{ secrets.USERNAME }}@${{ secrets.HOST }} "minikube start --driver=docker"
env:
SSH_AUTH_SOCK: /dev/null

0 comments on commit 8ab9dc3

Please sign in to comment.