|
|
@ -30,7 +30,7 @@ endif |
|
|
|
K3D_IMAGE_TAG := $(GIT_TAG:v%=%)
|
|
|
|
K3D_IMAGE_TAG := $(GIT_TAG:v%=%)
|
|
|
|
|
|
|
|
|
|
|
|
# get latest k3s version: grep the tag and replace + with - (difference between git and dockerhub tags)
|
|
|
|
# get latest k3s version: grep the tag and replace + with - (difference between git and dockerhub tags)
|
|
|
|
K3S_TAG := $(shell curl --silent --retry 3 "https://update.k3s.io/v1-release/channels/stable" | egrep -o '/v[^ ]+"' | sed -E 's/\/|\"//g' | sed -E 's/\+/\-/')
|
|
|
|
K3S_TAG := $(shell curl --silent --retry 3 "https://update.k3s.io/v1-release/channels/stable" | egrep -o '/v[^ ]+"' | sed -E 's/\/|\"//g' | sed -E 's/\+/\-/')
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(K3S_TAG),) |
|
|
|
ifeq ($(K3S_TAG),) |
|
|
|
$(warning K3S_TAG undefined: couldn't get latest k3s image tag!) |
|
|
|
$(warning K3S_TAG undefined: couldn't get latest k3s image tag!) |
|
|
|