make make error out if no K3S_TAG was found or set
This commit is contained in:
parent
c5e5adb0e2
commit
4701a8b65f
3
Makefile
3
Makefile
@ -12,6 +12,9 @@ endif
|
||||
|
||||
# get latest k3s version
|
||||
K3S_TAG := $(shell curl --silent "https://api.github.com/repos/rancher/k3s/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
|
||||
ifeq ($(K3S_TAG),)
|
||||
$(error "K3S_TAG undefined: couldn't get latest k3s image tag!")
|
||||
endif
|
||||
|
||||
# Go options
|
||||
GO ?= go
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user