mirror of
https://github.com/bin456789/reinstall.git
synced 2025-02-07 22:10:07 +08:00
core: 国内服务器使用 gitlab
This commit is contained in:
parent
f60f79e65a
commit
2e1702e5e0
18
.github/workflows/sync_to_gitlab.yml
vendored
Normal file
18
.github/workflows/sync_to_gitlab.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
name: 同步到 Gitlab
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
jobs:
|
||||
run:
|
||||
name: 同步到 Gitlab
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: yesolutions/mirror-action@master
|
||||
with:
|
||||
REMOTE: https://gitlab.com/bin456789/reinstall.git
|
||||
GIT_USERNAME: username
|
||||
GIT_PASSWORD: ${{ secrets.GITLAB_TOKEN }}
|
||||
PUSH_ALL_REFS: false
|
@ -1,10 +1,10 @@
|
||||
name: 同步到极狐
|
||||
name: 同步到 Gitlab CN
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
jobs:
|
||||
run:
|
||||
name: 同步到极狐
|
||||
name: 同步到 Gitlab CN
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@ -15,3 +15,4 @@ jobs:
|
||||
REMOTE: https://jihulab.com/bin456789/reinstall.git
|
||||
GIT_USERNAME: username
|
||||
GIT_PASSWORD: ${{ secrets.JIHULAB_TOKEN }}
|
||||
PUSH_ALL_REFS: false
|
@ -71,7 +71,7 @@ curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh
|
||||
For server inside China:
|
||||
|
||||
```bash
|
||||
curl -O https://jihulab.com/bin456789/reinstall/-/raw/main/reinstall.sh || wget -O reinstall.sh $_
|
||||
curl -O https://gitlab.com/bin456789/reinstall/-/raw/main/reinstall.sh || wget -O reinstall.sh $_
|
||||
```
|
||||
|
||||
## Download (Current system is <img width="20" height="20" src="https://blogs.windows.com/wp-content/uploads/prod/2022/09/cropped-Windows11IconTransparent512-32x32.png" /> Windows)
|
||||
@ -104,7 +104,7 @@ certutil -urlcache -f -split https://raw.githubusercontent.com/bin456789/reinsta
|
||||
For server inside China:
|
||||
|
||||
```batch
|
||||
certutil -urlcache -f -split https://jihulab.com/bin456789/reinstall/-/raw/main/reinstall.bat
|
||||
certutil -urlcache -f -split https://gitlab.com/bin456789/reinstall/-/raw/main/reinstall.bat
|
||||
```
|
||||
|
||||
## Usage
|
||||
@ -254,7 +254,7 @@ bash reinstall.sh netboot.xyz
|
||||
- Hyper-V Server \*
|
||||
- Azure Stack HCI \*
|
||||
|
||||
#### ~~Method 1: Let the Script Automatically Search for ISO (Recommended)~~
|
||||
#### ~~Method 1: Let the Script Automatically Search for ISO~~
|
||||
|
||||
> [!CAUTION]
|
||||
> The ISO repository currently prohibits direct link downloads, so this method is no longer effective.
|
||||
|
@ -71,7 +71,7 @@ curl -O https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh
|
||||
国内服务器:
|
||||
|
||||
```bash
|
||||
curl -O https://jihulab.com/bin456789/reinstall/-/raw/main/reinstall.sh || wget -O reinstall.sh $_
|
||||
curl -O https://gitlab.com/bin456789/reinstall/-/raw/main/reinstall.sh || wget -O reinstall.sh $_
|
||||
```
|
||||
|
||||
## 下载(当前系统是 <img width="20" height="20" src="https://blogs.windows.com/wp-content/uploads/prod/2022/09/cropped-Windows11IconTransparent512-32x32.png" /> Windows)
|
||||
@ -104,7 +104,7 @@ certutil -urlcache -f -split https://raw.githubusercontent.com/bin456789/reinsta
|
||||
国内服务器:
|
||||
|
||||
```batch
|
||||
certutil -urlcache -f -split https://jihulab.com/bin456789/reinstall/-/raw/main/reinstall.bat
|
||||
certutil -urlcache -f -split https://gitlab.com/bin456789/reinstall/-/raw/main/reinstall.bat
|
||||
```
|
||||
|
||||
## 使用
|
||||
|
@ -3,7 +3,7 @@ mode con cp select=437 >nul
|
||||
setlocal EnableDelayedExpansion
|
||||
|
||||
set confhome=https://raw.githubusercontent.com/bin456789/reinstall/main
|
||||
set confhome_cn=https://jihulab.com/bin456789/reinstall/-/raw/main
|
||||
set confhome_cn=https://gitlab.com/bin456789/reinstall/-/raw/main
|
||||
rem set confhome_cn=https://www.ghproxy.cc/https://raw.githubusercontent.com/bin456789/reinstall/main
|
||||
|
||||
set pkgs=curl,cpio,p7zip,ipcalc,dos2unix,jq,xz,gzip,zstd,openssl,bind-utils,libiconv,binutils
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
set -eE
|
||||
confhome=https://raw.githubusercontent.com/bin456789/reinstall/main
|
||||
confhome_cn=https://jihulab.com/bin456789/reinstall/-/raw/main
|
||||
confhome_cn=https://gitlab.com/bin456789/reinstall/-/raw/main
|
||||
# confhome_cn=https://www.ghproxy.cc/https://raw.githubusercontent.com/bin456789/reinstall/main
|
||||
|
||||
# 默认密码
|
||||
|
Loading…
x
Reference in New Issue
Block a user