feat: Initialize the project #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Minikube using GitHub Actions | |
on: | |
push: | |
jobs: | |
job1: | |
runs-on: ubuntu-latest | |
name: Build Node.js Docker Image and deploy to Minikube | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Start Minikube | |
uses: medyagh/setup-minikube@master | |
- name: Try the cluster! | |
run: kubectl get pods -A | |
- name: Deploy to Minikube | |
run: | |
kubectl apply -f k8s-node-app.yaml | |
- name: Test service URLs | |
run: | | |
kubectl get svc | |
minikube service list | |
minikube service nodejs-app --url | |
echo "------------------opening the service------------------" | |
minikube ip | |
curl $(minikube service nodejs-app --url) | |