Browse Source

修复编译问题

Signed-off-by: allan716 <[email protected]>
allan716 4 years ago
parent
commit
db3f9d4e27
2 changed files with 4 additions and 2 deletions
  1. 3 1
      .goreleaser.yml
  2. 1 1
      Dockerfile

+ 3 - 1
.goreleaser.yml

@@ -37,4 +37,6 @@ changelog:
   filters:
     exclude:
       - '^docs:'
-      - '^test:'
+      - '^test:'
+      - '^TestData:'
+      - '^TestCode:'

+ 1 - 1
Dockerfile

@@ -12,7 +12,7 @@ ENV GOPROXY https://goproxy.cn,direct
 WORKDIR /homelab/buildspace
 COPY . .
 # 执行编译,-o 指定保存位置和程序编译名称
-RUN go build cmd/chinesesubfinder/main.go -ldflags="-s -w" -o /app/chinesesubfinder
+RUN go build -ldflags="-s -w" cmd/chinesesubfinder/main.go -o /app/chinesesubfinder
 
 # 运行时环境
 FROM lsiobase/ubuntu:bionic