-
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
03d17dc
commit f0f43d8
Showing
1 changed file
with
18 additions
and
18 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 |
---|---|---|
|
@@ -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 |