diff --git a/Makefile b/Makefile index 98a4a0c9c..7a033f71f 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,9 @@ ifndef MODULE_VERSION MODULE_VERSION = 0.0.1 endif +#latest api-gateway release +LATEST_RELEASE = $(shell curl -sS "https://api.github.com/repos/kyma-project/api-gateway/releases/latest" | jq -r '.tag_name') + # Operating system architecture OS_ARCH ?= $(shell uname -m) @@ -233,6 +236,13 @@ generate-manifests: kustomize ##@ Tools +REPOSITORY= +GITHUB_URL= + +.PHONY: get-latest-release +get-latest-release: + @echo $(LATEST_RELEASE) + ########## Kyma CLI ########### KYMA_STABILITY ?= unstable diff --git a/hack/ci/Makefile b/hack/ci/Makefile index 44b801a7b..446c9695f 100644 --- a/hack/ci/Makefile +++ b/hack/ci/Makefile @@ -16,7 +16,7 @@ module-build: MODULE_VERSION=${MODULE_VERSION}-${MODULE_SHA} \ MODULE_CHANNEL=fast @echo "\n- creating template for regular channel" - @sed -e 's/([- ])fast/\\1regular/g' <${PROJECT_ROOT}/template-fast.yaml >${PROJECT_ROOT}/template-regular.yaml + @sed -e 's/\([- ]\)fast/\1regular/' <${PROJECT_ROOT}/template-fast.yaml >${PROJECT_ROOT}/template-regular.yaml .PHONY: module-template-arifact module-template-artifact: