Skip to content

Commit f11755d

Browse files
committed
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
1 parent aa025a5 commit f11755d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ LICENSE_DIR=./licenses/
22
BUILD_DIR=./build
33
DOCKER_DIR=./docker/
44
SHELL := /bin/bash
5-
ifndef GOTOOLCHAIN
5+
ifdef GOTOOLCHAIN
66
GO_VERSION=$(GOTOOLCHAIN)
77
else
88
GO_VERSION=$(shell go mod edit -json | jq -r .Toolchain | sed -e 's/go//')

0 commit comments

Comments
 (0)