Skip to content

Commit

Permalink
Revert "Better way to invoke make single"
Browse files Browse the repository at this point in the history
This reverts commit 73efbd9
  • Loading branch information
deluan committed May 4, 2021
1 parent 73efbd9 commit a5fc5f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Expand Up @@ -78,14 +78,14 @@ all: ##@Cross_Compilation Build binaries for all supported platforms. It does no
.PHONY: all

single: ##@Cross_Compilation Build binaries for a single supported platforms. It does not build the frontend
@if [ -z "${os}" -o -z "${arch}" ]; then \
echo "Usage: make single os=<os> arch=<arch> "; \
@if [ -z "${GOOS}" -o -z "${GOARCH}" ]; then \
echo "Usage: GOOS=<os> GOARCH=<arch> make single"; \
echo "Options:"; \
grep -- "- id: navidrome_" .goreleaser.yml | sed 's/- id: navidrome_//g'; \
exit 1; \
fi
@echo "Building binaries for ${os}/${arch}"
docker run -t -v $(PWD):/workspace -e GOOS=${os} -e GOARCH=${arch} -w /workspace deluan/ci-goreleaser:$(CI_RELEASER_VERSION) \
@echo "Building binaries for ${GOOS}/${GOARCH}"
docker run -t -v $(PWD):/workspace -e GOOS -e GOARCH -w /workspace deluan/ci-goreleaser:$(CI_RELEASER_VERSION) \
goreleaser build --rm-dist --snapshot --single-target --id navidrome_${GOOS}_${GOARCH}
.PHONY: single

Expand Down

0 comments on commit a5fc5f0

Please sign in to comment.