Compare commits

...

2 Commits

Author SHA1 Message Date
DESKTOP-TKLFCPR\ython
fa2657a29a sync: update from workspace (latest ITSM/CICD/DR changes) 2026-06-01 19:59:38 +09:00
DESKTOP-TKLFCPR\ython
6cd1f3af34 ci: add Jenkinsfile for CI/CD pipeline 2026-06-01 19:49:03 +09:00
4 changed files with 39 additions and 0 deletions

32
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,32 @@
pipeline {
agent any
environment {
STATIC = '/var/www/manager'
NOTIFY = "${ITSM_BASE_URL}/api/messenger/webhook"
}
options { buildDiscarder(logRotator(numToKeepStr: '5')); timeout(time: 15, unit: 'MINUTES') }
stages {
stage('Checkout') { steps { checkout scm } }
stage('Build') {
steps {
dir('frontend') {
sh 'npm ci 2>/dev/null || npm install'
sh 'npm run build'
}
}
}
stage('Deploy') {
when { branch 'main' }
steps {
sh """
cp -r frontend/dist/. ${STATIC}/
systemctl restart guardia-manager 2>/dev/null || true
"""
}
}
}
post {
success { sh "curl -sf -X POST ${NOTIFY} -H 'Content-Type:application/json' -d '{\"event\":\"build_result\",\"room\":\"ops\",\"success\":true,\"result_summary\":\"✅ guardia-manager 배포 완료\"}' 2>/dev/null || true" }
failure { sh "curl -sf -X POST ${NOTIFY} -H 'Content-Type:application/json' -d '{\"event\":\"build_result\",\"room\":\"ops\",\"success\":false,\"result_summary\":\"❌ guardia-manager 빌드 실패\"}' 2>/dev/null || true" }
}
}

7
backend/.env Normal file
View File

@ -0,0 +1,7 @@
MANAGER_PORT=8002
GUARDIA_API=http://localhost:8001
GUARDIA_JWT_SECRET=guardia-jwt-production-secret-2026-please-change
MANAGER_ALLOWED_ORIGINS=http://localhost:5175,http://localhost:5173,http://zioinfo.co.kr:8090
DEPLOY_WEBHOOK=http://localhost:9999/
DEPLOY_LOG=/var/log/zioinfo/deploy.log
OLLAMA_URL=http://localhost:11434

BIN
frontend/public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
frontend/public/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB