Compare commits

...

4 Commits

Author SHA1 Message Date
lovezsh aa545a2a9b feat: 使用新的golang版本构建镜像 2024-08-26 22:02:40 +08:00
lovezsh bfd7729e09 feat: 更改setup-go action 为gitea仓库 2024-08-26 21:44:39 +08:00
lovezsh b8455bb8c9 Update .gitignore to include .vscode folder
Change-Id: I2e0b3a9d4f5a6b1c7e1e3e8a9f0a9e7d6c3d2e5e
2024-08-26 18:30:12 +08:00
lovezsh 0406e45ff7 docs: 添加下载说明 2024-08-25 23:32:13 +08:00
4 changed files with 21 additions and 1 deletions

View File

@ -10,7 +10,7 @@ jobs:
uses: http://${{secrets.ACTION_ACCESS_GIT}}@git.lovezsh.com/actions/checkout@v4 uses: http://${{secrets.ACTION_ACCESS_GIT}}@git.lovezsh.com/actions/checkout@v4
- name: 设置go环境 - name: 设置go环境
uses: https://github.com/actions/setup-go@v5 uses: https://${{secrets.ACTION_ACCESS_GIT}}@git.lovezsh.com/actions/setup-go@v5
with: with:
go-version: "1.22.4" go-version: "1.22.4"

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
bin bin
.swap .swap
.vscode

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM golang:1.22.4-alpine3.20 as builder
WORKDIR /builder
COPY . .
RUN GOPROXY=https://goproxy.cn CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o nip cmd/main.go
FROM alpine:3.20
WORKDIR /app
COPY --from=builder /builder/nip .
ENTRYPOINT [ "/app/nip" ]

View File

@ -1,3 +1,11 @@
## 一、简介 ## 一、简介
这是一个用于个人科学上网的工具, 用来解决各种公共工具因协议特征被识别的问题。 这是一个用于个人科学上网的工具, 用来解决各种公共工具因协议特征被识别的问题。
## 二、下载
```bash
$ curl https://git.lovezsh.com/api/packages/lovezsh/generic/nip/v1.0.0/nip_linux_amd64 -o nip
$ chmod +x ./nip
$ mv ./nip /usr/bin/
```