Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sed corrected, additional target to get latest release version #552

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion hack/ci/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down