Stage 서버 배포 구현 - Jenkins의 freestyle 방식
This commit is contained in:
@@ -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}"
|
||||
Reference in New Issue
Block a user