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 0040925 commit dd119b7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,11 @@ jobs:
docker tag gautampatil1/rezume:latest ghcr.io/gautampatil1/rezume:latest
docker push ghcr.io/gautampatil1/rezume:latest
- name: SSH into instance and restart Minikube
run: |
mkdir -p ~/.ssh # Create .ssh directory if it doesn't exist
touch ~/.ssh/known_hosts # Create known_hosts file if it doesn't exist
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

- 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
1 change: 0 additions & 1 deletion deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ spec:
containers:
- name: rezume
image: gautampatil1/rezume:latest
imagePullPolicy: Always
ports:
- containerPort: 80

Expand Down
2 changes: 1 addition & 1 deletion src/components/Hero.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function Hero() {
</div>
<div className={styles.buttons}>
<div className={styles.getStarted}>
<a href="/dashboard">Get Started</a>
<a href="/dashboard">Ayyo Started</a>
</div>
</div>
</div>
Expand Down

0 comments on commit dd119b7

Please sign in to comment.