Skip to content

Commit 5b075d6

Browse files
Merge pull request #13 from machine424/rrt
chore: use git tags for versioning instead of VERSION file
2 parents 7a80023 + 7b9f857 commit 5b075d6

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
VERSION:=$(shell cat VERSION)
1+
# Use the git tag name if at a tagged commit, otherwise use the short commit hash
2+
VERSION:=$(shell git describe --tags --exact-match --match "v*" 2>/dev/null || git rev-parse --short HEAD)
23

34
IMAGE_NAME ?= prometheus-example-app
45

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Usage is simple, on any request to `/` the request will result in a `200` respon
66

77
A Docker image is available at: `ghcr.io/rhobs/prometheus-example-app`
88

9+
# Releasing
10+
11+
Cut a new `vX.Y.Z` tag and publish a release based on that tag.
12+
913
## Deploying in a Kubernetes cluster
1014

1115
First, deploy one instance of this example application, which listens and exposes metrics on port 8080 using the following [Deployment manifest](manifests/deployment.yaml).

VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)