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