Skip to content

Commit

Permalink
make: set set latest stable version based on stable.txt
Browse files Browse the repository at this point in the history
Follow-up change for cilium/cilium#34666. We
need to set the latest stable Cilium version based on stable.txt from
the main Cilium repo as it isn't vendored.

curl it, man.

-- @michi-covalent

Signed-off-by: Tobias Klauser <tobias@cilium.io>
  • Loading branch information
tklauser committed Sep 3, 2024
1 parent 3c247c5 commit a27d45d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ GO_TAGS ?=
TARGET=cilium
INSTALL = $(QUIET)install
BINDIR ?= /usr/local/bin
VERSION=$(shell git describe --tags --always)
CILIUM_VERSION=$(shell curl -s https://raw.githubusercontent.com/cilium/cilium/main/stable.txt)
CLI_VERSION=$(shell git describe --tags --always)
STRIP_DEBUG=-w -s
ifdef DEBUG
STRIP_DEBUG=
endif
GO_BUILD_LDFLAGS ?= $(STRIP_DEBUG) -X 'github.com/cilium/cilium/cilium-cli/defaults.CLIVersion=$(VERSION)'
GO_BUILD_LDFLAGS ?= $(STRIP_DEBUG) \
-X 'github.com/cilium/cilium/cilium-cli/defaults.CLIVersion=$(CLI_VERSION)' \
-X 'github.com/cilium/cilium/cilium-cli/defaults.Version=$(CILIUM_VERSION)'

TEST_TIMEOUT ?= 5s
RELEASE_UID ?= $(shell id -u)
Expand Down

0 comments on commit a27d45d

Please sign in to comment.