Skip to content

Commit

Permalink
ci: fix docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie committed Nov 7, 2022
1 parent 7ec824e commit fdfd955
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 26 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
34 changes: 18 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fdfd955

Please sign in to comment.