mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-16 13:23:41 +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:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths-ignore:
|
paths:
|
||||||
- ".github/**"
|
- "bind/**"
|
||||||
- "!.github/workflows/release.yml"
|
- "cmd/**"
|
||||||
- "!.github/release-drafter.yml"
|
- "internal/**"
|
||||||
- "_docs/**"
|
- "pkg/**"
|
||||||
- "_examples/**"
|
- "ui/**"
|
||||||
- "README*.md"
|
- ".github/workflows/release.yml"
|
||||||
- ".gitignore"
|
- "go.mod"
|
||||||
- "ui/flutter/.gitignore"
|
- "go.sum"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
|||||||
+18
-16
@@ -4,25 +4,27 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths-ignore:
|
paths:
|
||||||
- ".github/**"
|
- "bind/**"
|
||||||
- "!.github/workflows/test.yml"
|
- "cmd/**"
|
||||||
- "_docs/**"
|
- "internal/**"
|
||||||
- "_examples/**"
|
- "pkg/**"
|
||||||
- "README*.md"
|
- "ui/**"
|
||||||
- ".gitignore"
|
- ".github/workflows/test.yml"
|
||||||
- "ui/flutter/.gitignore"
|
- "go.mod"
|
||||||
|
- "go.sum"
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths-ignore:
|
paths:
|
||||||
- ".github/**"
|
- "bind/**"
|
||||||
- "!.github/workflows/test.yml"
|
- "cmd/**"
|
||||||
- "_docs/**"
|
- "internal/**"
|
||||||
- "_examples/**"
|
- "pkg/**"
|
||||||
- "README*.md"
|
- "ui/**"
|
||||||
- ".gitignore"
|
- ".github/workflows/test.yml"
|
||||||
- "ui/flutter/.gitignore"
|
- "go.mod"
|
||||||
|
- "go.sum"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# lint:
|
# lint:
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ WORKDIR /app
|
|||||||
COPY ./go.mod ./go.sum ./
|
COPY ./go.mod ./go.sum ./
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
COPY . .
|
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
|
RUN go build -tags nosqlite,web -ldflags="-s -w" -o dist/gopeed github.com/monkeyWie/gopeed/cmd/web
|
||||||
|
|
||||||
FROM alpine:3.14.2
|
FROM alpine:3.14.2
|
||||||
|
|||||||
Reference in new issue
Block a user