최초 커밋

This commit is contained in:
root
2026-07-23 16:15:57 +09:00
commit c8f5efb6b7
14652 changed files with 4812531 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail
branch="${1:-main}"
target_dir="${2:-/srv/egbim_homepage}"
mkdir -p "$target_dir"
cd "$target_dir"
if [[ ! -d .git ]]; then
git clone --branch "$branch" https://gitea.hmac.kr/b24014/egbim_homepage.git .
else
git fetch origin
git checkout "$branch"
git reset --hard "origin/$branch"
fi
docker compose up -d --build
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
remote_url="https://gitea.hmac.kr/b24014/egbim_homepage.git"
cd "$repo_root"
git rev-parse --is-inside-work-tree >/dev/null 2>&1
git branch -m main
if git remote get-url origin >/dev/null 2>&1; then
git remote set-url origin "$remote_url"
else
git remote add origin "$remote_url"
fi
echo "origin => $remote_url"
git remote -v