-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.24 KB
/
deployDev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Build and deploy MERN stack
on:
workflow_dispatch:
jobs:
build:
runs-on: machine1
steps:
- 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: 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
- name: Create and claim persistent volume
run: |
cd kubernetes
sudo su
kubectl apply -f persistentVolume.yaml
kubectl apply -f persistentVolumeClaim.yaml
- name: Deploy MongoDB
run: |
kubectl apply -f mongodb.yaml
- name: Deploy Redis
run: |
kubectl apply -f redis.yaml
- name: Deploy Backend
run: |
kubectl apply -f backend.yaml
- name: Deploy Frontend
run: |
kubectl apply -f frontend.yaml