-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
77 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
project_name: "Podsync" | ||
|
||
before: | ||
hooks: | ||
- go mod tidy | ||
|
||
builds: | ||
- main: ./cmd/podsync/ | ||
binary: podsync | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
- darwin | ||
- windows | ||
goarch: | ||
- 386 | ||
- amd64 | ||
|
||
dockers: | ||
- image_templates: | ||
- 'mxpv/podsync:{{ .Tag }}' | ||
- 'mxpv/podsync:v{{ .Major }}.{{ .Minor }}' | ||
- 'mxpv/podsync:latest' | ||
- 'docker.pkg.github.com/mxpv/podsync/cli:{{ .Tag }}' | ||
- 'docker.pkg.github.com/mxpv/podsync/cli:v{{ .Major }}.{{ .Minor }}' | ||
- 'docker.pkg.github.com/mxpv/podsync/cli:latest' | ||
binaries: | ||
- podsync | ||
dockerfile: Dockerfile | ||
|
||
archives: | ||
- replacements: | ||
darwin: Darwin | ||
linux: Linux | ||
windows: Windows | ||
386: i386 | ||
amd64: x86_64 | ||
|
||
checksum: | ||
name_template: 'checksums.txt' | ||
|
||
snapshot: | ||
name_template: "{{ .Tag }}-next" | ||
|
||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
- Merge pull request | ||
- Merge branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
FROM golang:1.12 as build | ||
WORKDIR /work | ||
COPY . . | ||
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 make build | ||
|
||
FROM alpine:3.10 | ||
RUN apk --no-cache add \ | ||
ca-certificates \ | ||
youtube-dl \ | ||
ffmpeg | ||
WORKDIR /app/ | ||
COPY --from=build /work/podsync /app/podsync | ||
COPY podsync /app/podsync | ||
ENTRYPOINT ["/app/podsync"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters