ci: fix make build error
We only want to use the GOTOOLCHAIN if it's set otherwise fallback to
the go.mod toolchain version.
Error message:
docker: invalid reference format.
See 'docker run --help'.
make: *** [Makefile:128: build-linux-arm-7] Error 125
See https://github.com/gotify/server/actions/runs/14690165536/job/41224267750
This commit is contained in:
parent
aa025a5be2
commit
f11755d706
2
Makefile
2
Makefile
|
|
@ -2,7 +2,7 @@ LICENSE_DIR=./licenses/
|
||||||
BUILD_DIR=./build
|
BUILD_DIR=./build
|
||||||
DOCKER_DIR=./docker/
|
DOCKER_DIR=./docker/
|
||||||
SHELL := /bin/bash
|
SHELL := /bin/bash
|
||||||
ifndef GOTOOLCHAIN
|
ifdef GOTOOLCHAIN
|
||||||
GO_VERSION=$(GOTOOLCHAIN)
|
GO_VERSION=$(GOTOOLCHAIN)
|
||||||
else
|
else
|
||||||
GO_VERSION=$(shell go mod edit -json | jq -r .Toolchain | sed -e 's/go//')
|
GO_VERSION=$(shell go mod edit -json | jq -r .Toolchain | sed -e 's/go//')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue