From 5232bc45f2bebd0e054d86517d7fe569c1f5c0fe Mon Sep 17 00:00:00 2001 From: Pradum Chintamani <80237284+pradumchintamani@users.noreply.github.com> Date: Sat, 22 Jun 2024 23:03:35 +0530 Subject: [PATCH] Update deployDev.yml --- .github/workflows/deployDev.yml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deployDev.yml b/.github/workflows/deployDev.yml index 23f8d43..ac3f3e8 100644 --- a/.github/workflows/deployDev.yml +++ b/.github/workflows/deployDev.yml @@ -10,20 +10,26 @@ jobs: - name: Checkout repository uses: actions/checkout@v4.1.7 - # - name: Login to DockerHub - # uses: docker/login-action@v3.2.0 - # with: - # username: ${{ secrets.DOCKER_USERNAME }} - # password: ${{ secrets.DOCKER_PASSWORD }} + - name: Login to DockerHub + uses: docker/login-action@v3.2.0 + 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: Configure kubectl + run: | + mkdir -p ~/.kube + echo "$KUBE_CONFIG" | base64 -d > ~/.kube/config + kubectl version --client + - name: Create and claim persistent volume run: | cd kubernetes