dev #3

Merged
vincent merged 2 commits from dev into feature/ci-deploy 2026-03-21 17:39:08 +00:00
6 changed files with 7233 additions and 11 deletions
Showing only changes of commit b967a0d69b - Show all commits

View File

@@ -17,15 +17,25 @@ jobs:
id: env
run: |
if [ "${{ github.ref_name }}" = "main" ]; then
echo "ENV=prod" >> $GITHUB_OUTPUT
echo "COMPOSE_FILE=docker/docker-compose.prod.yml" >> $GITHUB_OUTPUT
echo "PROJECT_PATH=/volume1/docker/auditshield-prod" >> $GITHUB_OUTPUT
else
echo "ENV=dev" >> $GITHUB_OUTPUT
echo "COMPOSE_FILE=docker/docker-compose.yml" >> $GITHUB_OUTPUT
echo "PROJECT_PATH=/volume1/docker/auditshield-dev" >> $GITHUB_OUTPUT
fi
- name: Deploy
run: |
docker compose -f ${{ steps.env.outputs.COMPOSE_FILE }} pull
docker compose -f ${{ steps.env.outputs.COMPOSE_FILE }} up -d --remove-orphans
docker image prune -f
- name: Deploy to NAS
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.NAS_HOST }}
username: ${{ secrets.NAS_USER }}
key: ${{ secrets.NAS_SSH_KEY }}
script: |
mkdir -p ${{ steps.env.outputs.PROJECT_PATH }}
cd ${{ steps.env.outputs.PROJECT_PATH }}
git clone https://gitea.rigolet.tech/vincent/auditshield.git . 2>/dev/null || git pull
cp .env.example .env 2>/dev/null || true
sudo docker compose -f ${{ steps.env.outputs.COMPOSE_FILE }} up -d --build --remove-orphans
sudo docker image prune -f

5
frontend/next-env.d.ts vendored Normal file
View File

@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.

View File

@@ -1,6 +1,5 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
async rewrites() {
return [

7209
frontend/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -14,7 +14,6 @@
"react": "^18",
"react-dom": "^18",
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-badge": "^1.0.0",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-label": "^2.0.2",

0
frontend/public/.gitkeep Normal file
View File