diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index aca6f2d..3212c69 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -103,3 +103,25 @@ jobs: - name: Deployed to Docker Hub run: echo "Deployed to Docker Hub" + + deploy: + name: Deploy to VPS + runs-on: ubuntu-latest + needs: build-and-push + + steps: + - name: Deploy via SSH + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.SERVER_HOST }} + username: ${{ secrets.SERVER_USER }} + key: ${{ secrets.SERVER_SSH_KEY }} + port: 22 + script: | + cd ~/notifierapi + + sudo docker compose pull + + sudo docker compose up -d + + sudo docker image prune -f diff --git a/README.md b/README.md index 44cf4f2..54de961 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,13 @@ # 📢 NotifierAPI Backend +![Node.js](https://img.shields.io/badge/Node.js-339933?style=flat-square&logo=nodedotjs&logoColor=white) +![Express](https://img.shields.io/badge/Express-000000?style=flat-square&logo=express&logoColor=white) +![Prisma](https://img.shields.io/badge/Prisma-2D3748?style=flat-square&logo=prisma&logoColor=white) +![PostgreSQL](https://img.shields.io/badge/PostgreSQL-316192?style=flat-square&logo=postgresql&logoColor=white) +![Redis](https://img.shields.io/badge/Redis-DC382D?style=flat-square&logo=redis&logoColor=white) +![Azure](https://img.shields.io/badge/Azure-0078D4?style=flat-square&logo=microsoftazure&logoColor=white) +![Docker](https://img.shields.io/badge/Docker-2496ED?style=flat-square&logo=docker&logoColor=white) + A robust, enterprise-grade Node.js backend API for managing user authentication, announcements, and notifications. Built with **Express.js** and **Prisma ORM**, this system is engineered for high availability, security, and scalability. It is fully **deployed and hosted on Microsoft Azure**, leveraging cloud-native features for optimal performance. ---