Skip to content

Commit

Permalink
In the Makefile, if no git tags are found then query the github api i…
Browse files Browse the repository at this point in the history
…nstead to get latest tag. (#468)
  • Loading branch information
dhurley authored Sep 18, 2023
1 parent 556f51e commit 3013b97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
# Variable Definitions #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
VERSION = $(shell git describe --match "v[0-9]*" --abbrev=0 --tags)
ifeq ($(VERSION),)
VERSION = $(shell curl https://api.github.com/repos/nginx/agent/releases/latest -s | jq .name -r)
endif
COMMIT = $(shell git rev-parse --short HEAD)
DATE = $(shell date +%F_%H-%M-%S)

Expand Down

0 comments on commit 3013b97

Please sign in to comment.