Stage 서버 배포 구현 - Jenkins의 freestyle 방식

This commit is contained in:
jisangs committed 2026-07-10 18:27:36 +09:00
1 parent be5b2ad6e6
commit 97fa4d8390
7 files changed
+181

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
source "${SCRIPT_DIR}/config.sh"
EXCLUDES=(
".DS_Store" ".git" ".idea" ".claude" ".gitignore"
"__pycache__" "*.pyc" "node_modules" "venv"
"*.zip" "*.tar" "*.tar.gz" "*.pdf" "*.psd" "*.log"
"src/web/server/setup/service_db_setting.php"
)
TAR_EXCLUDE_ARGS=()
for pattern in "${EXCLUDES[@]}"; do
TAR_EXCLUDE_ARGS+=(--exclude="${pattern}")
done
echo "=== 압축: ${ARCHIVE_NAME} ==="
tar czf "${ARCHIVE_NAME}" "${TAR_EXCLUDE_ARGS[@]}" \
index.html \
src \
resources
ls -lh "${ARCHIVE_NAME}"