feat: add Docker deployment and Microsoft OAuth support
This commit is contained in:
@@ -1,23 +1,23 @@
|
||||
# 使用 Gitea tea CLI 创建远端仓库并推送(需在已 git init 且已 commit 的项目根目录执行)
|
||||
# 前置: tea login add --url https://你的Gitea --token <令牌> --name <别名>
|
||||
# tea login default <别名>
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
$root = Split-Path -Parent $PSScriptRoot
|
||||
Set-Location $root
|
||||
|
||||
if (-not (Get-Command tea -ErrorAction SilentlyContinue)) {
|
||||
Write-Error "未找到 tea,请安装: https://gitea.com/gitea/tea/releases"
|
||||
}
|
||||
|
||||
$desc = "萌邮 MengPost:基于 SMTP/IMAP 的多邮箱管理面板(React + Vite + Go + Gin + SQLite)"
|
||||
Write-Host ">>> tea repos create --name mengpost ..."
|
||||
tea repos create --name mengpost --description $desc
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "请在 Gitea 网页打开新建的 mengpost 仓库,复制 HTTPS 克隆地址,然后执行:"
|
||||
Write-Host " git remote add origin <粘贴地址>"
|
||||
Write-Host " git branch -M main"
|
||||
Write-Host " git push -u origin main"
|
||||
Write-Host ""
|
||||
Write-Host "若已存在 origin,可改为: git remote set-url origin <地址>"
|
||||
# 使用 Gitea tea CLI 创建远端仓库并推送(需在已 git init 且已 commit 的项目根目录执行)
|
||||
# 前置: tea login add --url https://你的Gitea --token <令牌> --name <别名>
|
||||
# tea login default <别名>
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
$root = Split-Path -Parent $PSScriptRoot
|
||||
Set-Location $root
|
||||
|
||||
if (-not (Get-Command tea -ErrorAction SilentlyContinue)) {
|
||||
Write-Error "未找到 tea,请安装: https://gitea.com/gitea/tea/releases"
|
||||
}
|
||||
|
||||
$desc = "萌邮 MengPost:基于 SMTP/IMAP 的多邮箱管理面板(React + Vite + Go + Gin + SQLite)"
|
||||
Write-Host ">>> tea repos create --name mengpost ..."
|
||||
tea repos create --name mengpost --description $desc
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "请在 Gitea 网页打开新建的 mengpost 仓库,复制 HTTPS 克隆地址,然后执行:"
|
||||
Write-Host " git remote add origin <粘贴地址>"
|
||||
Write-Host " git branch -M main"
|
||||
Write-Host " git push -u origin main"
|
||||
Write-Host ""
|
||||
Write-Host "若已存在 origin,可改为: git remote set-url origin <地址>"
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
# 使用 Gitea tea CLI 创建远端仓库(需在已 git init 且已 commit 的项目根目录执行)
|
||||
set -e
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
if ! command -v tea >/dev/null 2>&1; then
|
||||
echo "未找到 tea,请安装: https://gitea.com/gitea/tea/releases" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DESC='萌邮 MengPost:基于 SMTP/IMAP 的多邮箱管理面板(React + Vite + Go + Gin + SQLite)'
|
||||
echo ">>> tea repos create --name mengpost ..."
|
||||
tea repos create --name mengpost --description "$DESC"
|
||||
|
||||
echo ""
|
||||
echo "请在 Gitea 网页打开新建的 mengpost 仓库,复制 HTTPS 克隆地址,然后执行:"
|
||||
echo " git remote add origin <粘贴地址>"
|
||||
echo " git branch -M main"
|
||||
echo " git push -u origin main"
|
||||
#!/usr/bin/env bash
|
||||
# 使用 Gitea tea CLI 创建远端仓库(需在已 git init 且已 commit 的项目根目录执行)
|
||||
set -e
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
if ! command -v tea >/dev/null 2>&1; then
|
||||
echo "未找到 tea,请安装: https://gitea.com/gitea/tea/releases" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DESC='萌邮 MengPost:基于 SMTP/IMAP 的多邮箱管理面板(React + Vite + Go + Gin + SQLite)'
|
||||
echo ">>> tea repos create --name mengpost ..."
|
||||
tea repos create --name mengpost --description "$DESC"
|
||||
|
||||
echo ""
|
||||
echo "请在 Gitea 网页打开新建的 mengpost 仓库,复制 HTTPS 克隆地址,然后执行:"
|
||||
echo " git remote add origin <粘贴地址>"
|
||||
echo " git branch -M main"
|
||||
echo " git push -u origin main"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# 在已执行 tea repos create 创建 mengpost 后,关联 https://shumengya.top/shumengya/mengpost 并推送 main
|
||||
$ErrorActionPreference = "Stop"
|
||||
$Origin = "https://shumengya.top/shumengya/mengpost.git"
|
||||
Set-Location (Split-Path -Parent $PSScriptRoot)
|
||||
|
||||
git remote remove origin 2>$null
|
||||
git remote add origin $Origin
|
||||
git branch -M main
|
||||
git push -u origin main
|
||||
# 在已执行 tea repos create 创建 mengpost 后,关联 https://shumengya.top/shumengya/mengpost 并推送 main
|
||||
$ErrorActionPreference = "Stop"
|
||||
$Origin = "https://shumengya.top/shumengya/mengpost.git"
|
||||
Set-Location (Split-Path -Parent $PSScriptRoot)
|
||||
|
||||
git remote remove origin 2>$null
|
||||
git remote add origin $Origin
|
||||
git branch -M main
|
||||
git push -u origin main
|
||||
|
||||
Reference in New Issue
Block a user