mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Uses GoLang 1.16.3
Also add a target to build snapshots for a single platform
This commit is contained in:
parent
0d409e37e2
commit
692663680b
3 changed files with 19 additions and 6 deletions
15
Makefile
15
Makefile
|
@ -128,5 +128,18 @@ release:
|
|||
.PHONY: release
|
||||
|
||||
snapshot:
|
||||
docker run -t -v $(PWD):/workspace -w /workspace deluan/ci-goreleaser:1.16.2-1 goreleaser release --rm-dist --skip-publish --snapshot
|
||||
docker run -t -v $(PWD):/workspace -w /workspace deluan/ci-goreleaser:1.16.3-1 \
|
||||
goreleaser release --rm-dist --skip-publish --snapshot
|
||||
.PHONY: snapshot
|
||||
|
||||
snapshot-single:
|
||||
@if [ -z "${GOOS}" ]; then \
|
||||
echo "Usage: GOOS=<os> GOARCH=<arch> make snapshot-single"; \
|
||||
echo "Options:"; \
|
||||
grep -- "- id: navidrome_" .goreleaser.yml | sed 's/- id: navidrome_//g'; \
|
||||
exit 1; \
|
||||
fi
|
||||
@echo "Building binaries for ${GOOS}/${GOARCH}"
|
||||
docker run -t -v $(PWD):/workspace -e GOOS -e GOARCH -w /workspace deluan/ci-goreleaser:1.16.3-1 \
|
||||
goreleaser build --rm-dist --snapshot --single-target --id navidrome_${GOOS}_${GOARCH}
|
||||
.PHONY: snapshot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue