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:
Jannis Mattheis 2025-04-27 10:45:17 +02:00
parent aa025a5be2
commit f11755d706
1 changed files with 1 additions and 1 deletions

View File

@ -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//')