-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
571eb86
commit 6aa4b2d
Showing
1 changed file
with
19 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
name: Docker Build and Push | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
|
@@ -9,13 +8,10 @@ jobs: | |
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
uses: actions/[email protected] | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
uses: docker/login-action@v3.2.0 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
@@ -28,3 +24,20 @@ jobs: | |
docker push hellopradum/backend-wanderlust:latest | ||
docker push hellopradum/frontend-wanderlust:latest | ||
- name: Create and claim persistent volume | ||
run: | | ||
kubectl apply -f kubernetes/persistentVolume.yaml | ||
kubectl apply -f kubernetes/persistentVolumeClaim.yaml | ||
- name: Deploy MongoDB | ||
run: | | ||
kubectl apply -f kubernetes/mongodb.yaml | ||
- name: Deploy Redis | ||
run: | | ||
kubectl apply -f kubernetes/redis.yaml | ||
- name: Deploy Backend | ||
run: | | ||
kubectl apply -f kubernetes/backend.yaml | ||
- name: Deploy Frontend | ||
run: | | ||
kubectl apply -f kubernetes/frontend.yaml |