feat: add VPS Monitor backend and frontend services
Some checks failed
Build and Push Docker Images / docker (push) Failing after 5s
Some checks failed
Build and Push Docker Images / docker (push) Failing after 5s
- Create systemd service for VPS Monitor agent. - Add FastAPI backend with endpoints for managing VPS configurations and statuses. - Implement Dockerfile for backend service with required dependencies. - Create frontend using React with Vite and Tailwind CSS for styling. - Add API client for communicating with the backend. - Implement components for displaying VPS information and logs. - Set up Docker Compose for orchestrating backend and frontend services. - Add environment configuration files for backend and agent. - Implement CORS support in the backend for frontend communication.
This commit is contained in:
41
.gitea/workflows/build-push.yml
Normal file
41
.gitea/workflows/build-push.yml
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Build and Push Docker Images
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Gitea Registry
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login git.jeanbonapp.com -u "${{ secrets.REGISTRY_USER }}" --password-stdin
|
||||
|
||||
- name: Build Backend Image
|
||||
run: |
|
||||
docker build \
|
||||
-t git.jeanbonapp.com/${{ secrets.REGISTRY_USER }}/vps-monitor-backend:latest \
|
||||
./vps-monitor/backend
|
||||
|
||||
- name: Push Backend Image
|
||||
run: |
|
||||
docker push git.jeanbonapp.com/${{ secrets.REGISTRY_USER }}/vps-monitor-backend:latest
|
||||
|
||||
- name: Build Frontend Image
|
||||
run: |
|
||||
docker build \
|
||||
--build-arg VITE_APP_VERSION=$(echo ${{ gitea.sha }} | cut -c1-7) \
|
||||
--build-arg VITE_APP_ENV=Production \
|
||||
-t git.jeanbonapp.com/${{ secrets.REGISTRY_USER }}/vps-monitor-frontend:latest \
|
||||
./vps-monitor/frontend
|
||||
|
||||
- name: Push Frontend Image
|
||||
run: |
|
||||
docker push git.jeanbonapp.com/${{ secrets.REGISTRY_USER }}/vps-monitor-frontend:latest
|
||||
|
||||
Reference in New Issue
Block a user