Skip to content

Commit

Permalink
Update deployDev.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pradumchintamani authored Jun 22, 2024
1 parent 03d17dc commit f0f43d8
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/deployDev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,35 @@ jobs:
- name: Checkout repository
uses: actions/[email protected]

- name: Login to DockerHub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# - name: Login to DockerHub
# uses: docker/[email protected]
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
run: |
docker build -t hellopradum/backend-wanderlust backend/.
docker build -t hellopradum/frontend-wanderlust frontend/.
# - name: Build and push Docker image
# run: |
# docker build -t hellopradum/backend-wanderlust backend/.
# docker build -t hellopradum/frontend-wanderlust frontend/.

docker push hellopradum/backend-wanderlust:latest
docker push hellopradum/frontend-wanderlust:latest
# docker push hellopradum/backend-wanderlust:latest
# docker push hellopradum/frontend-wanderlust:latest

- name: Create and claim persistent volume
run: |
sudo su
kubectl apply -f kubernetes/persistentVolume.yaml
kubectl apply -f kubernetes/persistentVolumeClaim.yaml
cd kubernetes
kubectl apply -f persistentVolume.yaml
kubectl apply -f persistentVolumeClaim.yaml
- name: Deploy MongoDB
run: |
kubectl apply -f kubernetes/mongodb.yaml
kubectl apply -f mongodb.yaml
- name: Deploy Redis
run: |
kubectl apply -f kubernetes/redis.yaml
kubectl apply -f redis.yaml
- name: Deploy Backend
run: |
kubectl apply -f kubernetes/backend.yaml
kubectl apply -f backend.yaml
- name: Deploy Frontend
run: |
kubectl apply -f kubernetes/frontend.yaml
kubectl apply -f frontend.yaml

0 comments on commit f0f43d8

Please sign in to comment.