diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 07a05715..a71a1c07 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -142,7 +142,7 @@ jobs: - name: Run GoReleaser - SNAPSHOT if: startsWith(github.ref, 'refs/tags/') != true - uses: docker://deluan/ci-goreleaser:1.17.1-1 + uses: docker://deluan/ci-goreleaser:1.17.2-1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -150,7 +150,7 @@ jobs: - name: Run GoReleaser - RELEASE if: startsWith(github.ref, 'refs/tags/') - uses: docker://deluan/ci-goreleaser:1.17.1-1 + uses: docker://deluan/ci-goreleaser:1.17.2-1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/Makefile b/Makefile index f4821204..80cf6064 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ GIT_SHA=source_archive GIT_TAG=$(patsubst navidrome-%,v%,$(notdir $(PWD))) endif -CI_RELEASER_VERSION=1.17.1-1 ## https://github.com/navidrome/ci-goreleaser +CI_RELEASER_VERSION=1.17.2-1 ## https://github.com/navidrome/ci-goreleaser setup: check_env download-deps setup-git ##@1_Run_First Install dependencies and prepare development environment @echo Downloading Node dependencies... @@ -69,8 +69,7 @@ setup-git: ##@Development Setup Git hooks (pre-commit and pre-push) buildall: buildjs build ##@Build Build the project, both frontend and backend .PHONY: buildall -build: check_go_env ##@Build Build only backend - @echo "WARNING: This command does not build the frontend, it uses the latest one built by 'make buildjs'" +build: warning-noui-build check_go_env ##@Build Build only backend go build -ldflags="-X github.com/navidrome/navidrome/consts.gitSha=$(GIT_SHA) -X github.com/navidrome/navidrome/consts.gitTag=$(GIT_TAG)-SNAPSHOT" -tags=netgo .PHONY: build @@ -78,14 +77,12 @@ buildjs: check_node_env ##@Build Build only frontend @(cd ./ui && npm run build) .PHONY: buildjs -all: ##@Cross_Compilation Build binaries for all supported platforms. It does not build the frontend - @echo "WARNING: This command does not builds the frontend, it uses the latest one built by 'make buildjs'" +all: warning-noui-build ##@Cross_Compilation Build binaries for all supported platforms. It does not build the frontend docker run -t -v $(PWD):/workspace -w /workspace deluan/ci-goreleaser:$(CI_RELEASER_VERSION) \ goreleaser release --rm-dist --skip-publish --snapshot .PHONY: all -single: ##@Cross_Compilation Build binaries for a single supported platforms. It does not build the frontend - @echo "WARNING: This command does not build the frontend, it uses the latest one built by 'make buildjs'" +single: warning-noui-build ##@Cross_Compilation Build binaries for a single supported platforms. It does not build the frontend @if [ -z "${GOOS}" -o -z "${GOARCH}" ]; then \ echo "Usage: GOOS= GOARCH= make single"; \ echo "Options:"; \ @@ -97,6 +94,9 @@ single: ##@Cross_Compilation Build binaries for a single supported platforms. It goreleaser build --rm-dist --snapshot --single-target --id navidrome_${GOOS}_${GOARCH} .PHONY: single +warning-noui-build: + @echo "WARNING: This command does not build the frontend, it uses the latest built with 'make buildjs'" +.PHONY: warning-noui-build ########################################## #### Miscellaneous