fix: revert deploy paths to root output directory
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m7s
TaxBaik Browser E2E / browser-e2e (push) Failing after 1m53s

This commit is contained in:
2026-06-28 00:58:38 +09:00
parent 41f569362d
commit 1c831b1b30
+7 -7
View File
@@ -46,24 +46,24 @@ jobs:
TELEGRAM_CHAT_ID="$TELEGRAM_CHAT_ID" \
python3 -c '
import json, os, pathlib
pathlib.Path("./publish/web/appsettings.Production.json").write_text(
pathlib.Path("./publish/appsettings.Production.json").write_text(
json.dumps({
"Jwt": {"SecretKey": os.environ["JWT_SECRET_KEY"]},
"Telegram": {"BotToken": os.environ["TELEGRAM_BOT_TOKEN"], "ChatId": os.environ["TELEGRAM_CHAT_ID"]}
}, ensure_ascii=False, indent=2),
encoding="utf-8"
)'
test -s ./publish/web/appsettings.Production.json || { echo "appsettings.Production.json is empty" >&2; exit 1; }
test -s ./publish/appsettings.Production.json || { echo "appsettings.Production.json is empty" >&2; exit 1; }
- name: Copy migrations
run: cp -r db/migrations ./publish/web/migrations || true
run: cp -r db/migrations ./publish/migrations || true
- name: Generate build info
run: |
COMMIT_HASH=$(git rev-parse --short HEAD)
BUILD_TIME=$(date -u +'%Y-%m-%d %H:%M:%S UTC')
mkdir -p ./publish/web/wwwroot
printf 'Version: %s\nBuilt: %s\n' "$COMMIT_HASH" "$BUILD_TIME" > ./publish/web/wwwroot/version.txt
mkdir -p ./publish/wwwroot
printf 'Version: %s\nBuilt: %s\n' "$COMMIT_HASH" "$BUILD_TIME" > ./publish/wwwroot/version.txt
echo "✓ Build: $COMMIT_HASH @ $BUILD_TIME"
- name: Setup SSH
@@ -120,11 +120,11 @@ jobs:
rm -f "/tmp/taxbaik_\${TIMESTAMP}.tgz"
echo "--- [2/5] 운영 설정 검증 ---"
test -s "\$DEPLOY_DIR/web/appsettings.Production.json" \
test -s "\$DEPLOY_DIR/appsettings.Production.json" \
|| { echo "FATAL: appsettings.Production.json 없음" >&2; exit 1; }
echo "--- [3/5] 심볼릭 링크 전환 ---"
ln -sfn "\$DEPLOY_DIR/web" "\$DEPLOY_HOME/taxbaik_active"
ln -sfn "\$DEPLOY_DIR" "\$DEPLOY_HOME/taxbaik_active"
echo "--- [4/5] 서비스 재시작 ---"
sudo /usr/bin/systemctl restart taxbaik