Skip to content

Commit d8aaed5

Browse files
committed
replace NekoWheel with wuhan005
Signed-off-by: E99p1ant <i@github.red>
1 parent c123a8f commit d8aaed5

File tree

37 files changed

+102
-140
lines changed

37 files changed

+102
-140
lines changed

.deepsource.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ name = "go"
55
enabled = true
66

77
[analyzers.meta]
8-
import_root = "github.com/NekoWheel/NekoBox"
8+
import_root = "github.com/wuhan005/NekoBox"

.github/workflows/docker.yml

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -41,42 +41,4 @@ jobs:
4141
build-args: |
4242
GITHUB_SHA=${{ github.sha }}
4343
tags: |
44-
ghcr.io/nekowheel/nekobox:${{ env.IMAGE_TAG }}
45-
46-
# build-arm:
47-
# runs-on: raspberrypi
48-
# permissions:
49-
# actions: write
50-
# contents: read
51-
# packages: write
52-
# steps:
53-
# - name: Compute image tag name
54-
# run: echo "IMAGE_TAG=$(echo $GITHUB_REF_NAME)" >> $GITHUB_ENV
55-
# - name: Checkout code
56-
# uses: actions/checkout@v3
57-
# - name: Set up Docker Buildx
58-
# id: buildx
59-
# uses: docker/setup-buildx-action@v2
60-
# - name: Inspect builder
61-
# run: |
62-
# echo "Name: ${{ steps.buildx.outputs.name }}"
63-
# echo "Endpoint: ${{ steps.buildx.outputs.endpoint }}"
64-
# echo "Status: ${{ steps.buildx.outputs.status }}"
65-
# echo "Flags: ${{ steps.buildx.outputs.flags }}"
66-
# echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
67-
# - name: Login to GitHub Container registry
68-
# uses: docker/login-action@v2
69-
# with:
70-
# registry: ghcr.io
71-
# username: ${{ github.repository_owner }}
72-
# password: ${{ secrets.GITHUB_TOKEN }}
73-
# - name: Build and push images
74-
# uses: docker/build-push-action@v4
75-
# with:
76-
# context: .
77-
# platforms: linux/arm/v7
78-
# push: true
79-
# build-args: |
80-
# GITHUB_SHA=${{ github.sha }}
81-
# tags: |
82-
# ghcr.io/nekowheel/nekobox:${{ env.IMAGE_TAG }}
44+
ghcr.io/wuhan005/nekobox:${{ env.IMAGE_TAG }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ARG GITHUB_SHA=dev
99
COPY . .
1010

1111
RUN go mod tidy
12-
RUN go build -v -ldflags "-w -s -extldflags '-static' -X 'github.com/NekoWheel/NekoBox/internal/conf.BuildCommit=$GITHUB_SHA'" -o NekoBox ./cmd/
12+
RUN go build -v -ldflags "-w -s -extldflags '-static' -X 'github.com/wuhan005/NekoBox/internal/conf.BuildCommit=$GITHUB_SHA'" -o NekoBox ./cmd/
1313

1414
FROM alpine:latest
1515

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ NekoBox
88
匿名提问箱 / Anonymous Question Box
99
</p>
1010
<p align="center">
11-
<a href="https://goreportcard.com/badge/github.com/NekoWheel/NekoBox">
12-
<img src="https://github.com/NekoWheel/NekoBox/workflows/Go/badge.svg" alt="Go Report Card">
11+
<a href="https://goreportcard.com/badge/github.com/wuhan005/NekoBox">
12+
<img src="https://github.com/wuhan005/NekoBox/workflows/Go/badge.svg" alt="Go Report Card">
1313
</a>
14-
<a href="https://sourcegraph.com/github.com/NekoWheel/NekoBox">
14+
<a href="https://sourcegraph.com/github.com/wuhan005/NekoBox">
1515
<img src="https://img.shields.io/badge/view%20on-Sourcegraph-brightgreen.svg?logo=sourcegraph" alt="Sourcegraph">
1616
</a>
17-
<a href="https://deepsource.io/gh/NekoWheel/NekoBox/?ref=repository-badge">
18-
<img src="https://deepsource.io/gh/NekoWheel/NekoBox.svg/?label=active+issues&token=7nuU5C-4QG3CP_5g9qFf3Bl9" alt="DeepSource">
17+
<a href="https://deepsource.io/gh/wuhan005/NekoBox/?ref=repository-badge">
18+
<img src="https://deepsource.io/gh/wuhan005/NekoBox.svg/?label=active+issues&token=7nuU5C-4QG3CP_5g9qFf3Bl9" alt="DeepSource">
1919
</a>
20-
<a href="https://goreportcard.com/report/github.com/NekoWheel/NekoBox">
21-
<img src="https://goreportcard.com/badge/github.com/NekoWheel/NekoBox" alt="Go Report Card">
20+
<a href="https://goreportcard.com/report/github.com/wuhan005/NekoBox">
21+
<img src="https://goreportcard.com/badge/github.com/wuhan005/NekoBox" alt="Go Report Card">
2222
<a>
2323
</p>
2424

@@ -41,10 +41,10 @@ referring to the comments in the file.
4141

4242
```bash
4343
# Pull the latest image
44-
docker pull ghcr.io/nekowheel/nekobox:master
44+
docker pull ghcr.io/wuhan005/nekobox:master
4545

4646
# Start the container (listen on port 80 and mount the configuration file)
47-
docker run -dt --name NekoBox -p 80:80 -v $(pwd)/app.ini:/app/conf/app.ini ghcr.io/nekowheel/nekobox:master
47+
docker run -dt --name NekoBox -p 80:80 -v $(pwd)/app.ini:/app/conf/app.ini ghcr.io/wuhan005/nekobox:master
4848
```
4949

5050
### Build from Source
@@ -59,7 +59,7 @@ docker run -dt --name NekoBox -p 80:80 -v $(pwd)/app.ini:/app/conf/app.ini ghcr.
5959

6060
```bash
6161
# Clone the source code
62-
git clone https://github.com/NekoWheel/NekoBox.git
62+
git clone https://github.com/wuhan005/NekoBox.git
6363

6464
# Enter the project directory
6565
cd NekoBox

README.zh-CN.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ NekoBox
88
匿名提问箱 / Anonymous Question Box
99
</p>
1010
<p align="center">
11-
<a href="https://goreportcard.com/badge/github.com/NekoWheel/NekoBox">
12-
<img src="https://github.com/NekoWheel/NekoBox/workflows/Go/badge.svg" alt="Go Report Card">
11+
<a href="https://goreportcard.com/badge/github.com/wuhan005/NekoBox">
12+
<img src="https://github.com/wuhan005/NekoBox/workflows/Go/badge.svg" alt="Go Report Card">
1313
</a>
14-
<a href="https://sourcegraph.com/github.com/NekoWheel/NekoBox">
14+
<a href="https://sourcegraph.com/github.com/wuhan005/NekoBox">
1515
<img src="https://img.shields.io/badge/view%20on-Sourcegraph-brightgreen.svg?logo=sourcegraph" alt="Sourcegraph">
1616
</a>
17-
<a href="https://deepsource.io/gh/NekoWheel/NekoBox/?ref=repository-badge">
18-
<img src="https://deepsource.io/gh/NekoWheel/NekoBox.svg/?label=active+issues&token=7nuU5C-4QG3CP_5g9qFf3Bl9" alt="DeepSource">
17+
<a href="https://deepsource.io/gh/wuhan005/NekoBox/?ref=repository-badge">
18+
<img src="https://deepsource.io/gh/wuhan005/NekoBox.svg/?label=active+issues&token=7nuU5C-4QG3CP_5g9qFf3Bl9" alt="DeepSource">
1919
</a>
20-
<a href="https://goreportcard.com/report/github.com/NekoWheel/NekoBox">
21-
<img src="https://goreportcard.com/badge/github.com/NekoWheel/NekoBox" alt="Go Report Card">
20+
<a href="https://goreportcard.com/report/github.com/wuhan005/NekoBox">
21+
<img src="https://goreportcard.com/badge/github.com/wuhan005/NekoBox" alt="Go Report Card">
2222
<a>
2323
</p>
2424

@@ -40,10 +40,10 @@ NekoBox
4040

4141
```bash
4242
# 拉取最新镜像
43-
docker pull ghcr.io/nekowheel/nekobox:master
43+
docker pull ghcr.io/wuhan005/nekobox:master
4444

4545
# 启动容器(监听 80 端口并挂载配置文件)
46-
docker run -dt --name NekoBox -p 80:80 -v $(pwd)/app.ini:/app/conf/app.ini ghcr.io/nekowheel/nekobox:master
46+
docker run -dt --name NekoBox -p 80:80 -v $(pwd)/app.ini:/app/conf/app.ini ghcr.io/wuhan005/nekobox:master
4747
```
4848

4949
### 从源码构建
@@ -58,7 +58,7 @@ docker run -dt --name NekoBox -p 80:80 -v $(pwd)/app.ini:/app/conf/app.ini ghcr.
5858

5959
```bash
6060
# 克隆源码
61-
git clone https://github.com/NekoWheel/NekoBox.git
61+
git clone https://github.com/wuhan005/NekoBox.git
6262

6363
# 进入项目目录
6464
cd NekoBox

cmd/nekobox.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/sirupsen/logrus"
1111
"github.com/urfave/cli/v2"
1212

13-
"github.com/NekoWheel/NekoBox/internal/cmd"
13+
"github.com/wuhan005/NekoBox/internal/cmd"
1414
)
1515

1616
func main() {
@@ -23,7 +23,7 @@ func main() {
2323
cmd.Censor,
2424
cmd.Uid,
2525
}
26-
26+
2727
if err := app.Run(os.Args); err != nil {
2828
logrus.WithError(err).Fatal("Failed to start application")
2929
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/NekoWheel/NekoBox
1+
module github.com/wuhan005/NekoBox
22

33
go 1.19
44

internal/cmd/censor.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import (
99
"github.com/sirupsen/logrus"
1010
"github.com/urfave/cli/v2"
1111

12-
"github.com/NekoWheel/NekoBox/internal/conf"
13-
"github.com/NekoWheel/NekoBox/internal/db"
14-
"github.com/NekoWheel/NekoBox/internal/security/censor"
12+
"github.com/wuhan005/NekoBox/internal/conf"
13+
"github.com/wuhan005/NekoBox/internal/db"
14+
"github.com/wuhan005/NekoBox/internal/security/censor"
1515
)
1616

1717
var Censor = &cli.Command{

internal/cmd/uid.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"github.com/rs/xid"
88
"github.com/urfave/cli/v2"
99

10-
"github.com/NekoWheel/NekoBox/internal/conf"
11-
"github.com/NekoWheel/NekoBox/internal/db"
10+
"github.com/wuhan005/NekoBox/internal/conf"
11+
"github.com/wuhan005/NekoBox/internal/db"
1212
)
1313

1414
var Uid = &cli.Command{

internal/cmd/web.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import (
1111
"github.com/uptrace/uptrace-go/uptrace"
1212
"github.com/urfave/cli/v2"
1313

14-
"github.com/NekoWheel/NekoBox/internal/conf"
15-
"github.com/NekoWheel/NekoBox/internal/db"
16-
"github.com/NekoWheel/NekoBox/internal/route"
17-
"github.com/NekoWheel/NekoBox/internal/tracing"
14+
"github.com/wuhan005/NekoBox/internal/conf"
15+
"github.com/wuhan005/NekoBox/internal/db"
16+
"github.com/wuhan005/NekoBox/internal/route"
17+
"github.com/wuhan005/NekoBox/internal/tracing"
1818
)
1919

2020
var Web = &cli.Command{

0 commit comments

Comments
 (0)