make make error out if no K3S_TAG was found or set

pull/96/head
iwilltry42 5 years ago
parent c5e5adb0e2
commit 4701a8b65f
  1. 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…
Cancel
Save