Skip to content

Commit eafbc8e

Browse files
authored
Release v0.2.2 (#56)
* 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
1 parent c67af6c commit eafbc8e

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22

33
## unreleased / master
44

5-
* [BUGFIX] Fix usage of the old PromQL parser in `prepare lint`.
5+
## v0.2.2 / 2020-06-09
6+
7+
* [BUGFIX] Remove usage of alternate PromQL parser in `rules prepare lint`.
8+
* [BUGFIX] `rules check` does not require an argument.
69

710
## v0.2.1 / 2020-06-08
811

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

1216
## v0.2.0 / 2020-06-02
1317

tools/image-tag

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@ set -o pipefail
66

77
WORKING_SUFFIX=$(if git status --porcelain | grep -qE '^(?:[^?][^ ]|[^ ][^?])\s'; then echo "-WIP"; else echo ""; fi)
88
BRANCH_PREFIX=$(git rev-parse --abbrev-ref HEAD)
9-
echo "${BRANCH_PREFIX//\//-}-$(git rev-parse --short HEAD)$WORKING_SUFFIX"
9+
10+
if [[ $BRANCH_PREFIX =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]];
11+
then
12+
echo $BRANCH_PREFIX
13+
else
14+
echo "${BRANCH_PREFIX//\//-}-$(git rev-parse --short HEAD)$WORKING_SUFFIX"
15+
fi

0 commit comments

Comments
 (0)