Skip to content

Commit

Permalink
Release v0.2.2 (grafana/cortex-tools#56)
Browse files Browse the repository at this point in the history
* Release version v0.2.2

* Modify the image tag to tag the images accordingly to the branch name

We'll use the branch name as the image tag as long as it matches a
semantic version with a prefix of `v`.

* Wordsmith changelog entries
  • Loading branch information
gotjosh committed Jun 9, 2020
1 parent 39a9105 commit ceb2e06
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion cmd/cortextool/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@

## unreleased / master

* [BUGFIX] Fix usage of the old PromQL parser in `prepare lint`.
## v0.2.2 / 2020-06-09

* [BUGFIX] Remove usage of alternate PromQL parser in `rules prepare lint`.
* [BUGFIX] `rules check` does not require an argument.

## v0.2.1 / 2020-06-08

* [FEATURE] Add `rules check` command. It runs various [best practice](https://prometheus.io/docs/practices/rules/) checks against rules.
* [ENHANCEMENT] Ensure `rules prepare` takes into account Vector Matching on PromQL Binary Expressions.
* [BUGFIX] `rules prepare` and `rules lint` do not require an argument.

## v0.2.0 / 2020-06-02

Expand Down
8 changes: 7 additions & 1 deletion cmd/cortextool/tools/image-tag
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@ set -o pipefail

WORKING_SUFFIX=$(if git status --porcelain | grep -qE '^(?:[^?][^ ]|[^ ][^?])\s'; then echo "-WIP"; else echo ""; fi)
BRANCH_PREFIX=$(git rev-parse --abbrev-ref HEAD)
echo "${BRANCH_PREFIX//\//-}-$(git rev-parse --short HEAD)$WORKING_SUFFIX"

if [[ $BRANCH_PREFIX =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]];
then
echo $BRANCH_PREFIX
else
echo "${BRANCH_PREFIX//\//-}-$(git rev-parse --short HEAD)$WORKING_SUFFIX"
fi

0 comments on commit ceb2e06

Please sign in to comment.