Skip to content

Commit 07919eb

Browse files
authored
Remove 'v' prefix in release tag. (#126)
Align with Stackdriver agents version schema.
1 parent b9b9b5f commit 07919eb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

release.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
version="$1"
44
versioned_release_branch="release-${version}"
5-
versioned_release_tag="v${version}"
65

76
if [[ -z "${version}" ]]; then
87
echo "Please provide a version: ./release.sh {VERSION}"
@@ -35,12 +34,12 @@ DOCKER_IMAGE_NAME="gcr.io/stackdriver-prometheus/stackdriver-prometheus-sidecar"
3534
################################
3635
# Push branch and tag to GitHub
3736
################################
38-
# 1. Tag the commit to a specific version, e.g. `v0.3.1`.
39-
git tag "${versioned_release_tag}"
37+
# 1. Tag the commit to a specific version, e.g. `0.3.1`.
38+
git tag "${version}"
4039

4140
# 2. Push release branch to GitHub.
4241
git push https://github.com/Stackdriver/stackdriver-prometheus-sidecar.git "${versioned_release_branch}"
4342

4443
# 3. Push tag to GitHub.
45-
git push https://github.com/Stackdriver/stackdriver-prometheus-sidecar.git "${versioned_release_tag}"
44+
git push https://github.com/Stackdriver/stackdriver-prometheus-sidecar.git "${version}"
4645

0 commit comments

Comments
 (0)