mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-05 16:15:43 +00:00
ci: fix docker build
This commit is contained in:
1 parent
7ec824edda
commit
fdfd95555d
3 files changed
+28
-26
No files matched your search
@@ -4,15 +4,15 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- ".github/**"
|
||||
- "!.github/workflows/release.yml"
|
||||
- "!.github/release-drafter.yml"
|
||||
- "_docs/**"
|
||||
- "_examples/**"
|
||||
- "README*.md"
|
||||
- ".gitignore"
|
||||
- "ui/flutter/.gitignore"
|
||||
paths:
|
||||
- "bind/**"
|
||||
- "cmd/**"
|
||||
- "internal/**"
|
||||
- "pkg/**"
|
||||
- "ui/**"
|
||||
- ".github/workflows/release.yml"
|
||||
- "go.mod"
|
||||
- "go.sum"
|
||||
|
||||
jobs:
|
||||
release:
|
||||
|
||||
+18
-16
@@ -4,25 +4,27 @@ on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- ".github/**"
|
||||
- "!.github/workflows/test.yml"
|
||||
- "_docs/**"
|
||||
- "_examples/**"
|
||||
- "README*.md"
|
||||
- ".gitignore"
|
||||
- "ui/flutter/.gitignore"
|
||||
paths:
|
||||
- "bind/**"
|
||||
- "cmd/**"
|
||||
- "internal/**"
|
||||
- "pkg/**"
|
||||
- "ui/**"
|
||||
- ".github/workflows/test.yml"
|
||||
- "go.mod"
|
||||
- "go.sum"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- ".github/**"
|
||||
- "!.github/workflows/test.yml"
|
||||
- "_docs/**"
|
||||
- "_examples/**"
|
||||
- "README*.md"
|
||||
- ".gitignore"
|
||||
- "ui/flutter/.gitignore"
|
||||
paths:
|
||||
- "bind/**"
|
||||
- "cmd/**"
|
||||
- "internal/**"
|
||||
- "pkg/**"
|
||||
- "ui/**"
|
||||
- ".github/workflows/test.yml"
|
||||
- "go.mod"
|
||||
- "go.sum"
|
||||
|
||||
jobs:
|
||||
# lint:
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ WORKDIR /app
|
||||
COPY ./go.mod ./go.sum ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
COPY --from=flutter /app/build/web/* ./cmd/web/dist
|
||||
COPY --from=flutter /app/build/web/* ./cmd/web/dist/
|
||||
RUN go build -tags nosqlite,web -ldflags="-s -w" -o dist/gopeed github.com/monkeyWie/gopeed/cmd/web
|
||||
|
||||
FROM alpine:3.14.2
|
||||
|
||||
Reference in new issue
Block a user