File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22
33version=" $1 "
4+ versioned_release_branch=" release-${version} "
5+ versioned_release_tag=" v${version} "
46
57if [[ -z " ${version} " ]]; then
68 echo " Please provide a version: ./release.sh {VERSION}"
2123echo " ${version} " > VERSION
2224
2325# 2. Create a git branch for the version, e.g. `release-0.3.1`.
24- git checkout -b " release- ${version }"
26+ git checkout -b " ${versioned_release_branch }"
2527
26- # 3. Run `DOCKER_IMAGE_NAME={public_docker_image} make push`.
28+ # 3. Commit the version update.
29+ git add VERSION
30+ git commit -m " Update version to ${version} ."
31+
32+ # 4. Run `DOCKER_IMAGE_NAME={public_docker_image} make push`.
2733DOCKER_IMAGE_NAME=" gcr.io/stackdriver-prometheus/stackdriver-prometheus-sidecar" make push
34+
35+ # ###############################
36+ # Push branch and tag to GitHub
37+ # ###############################
38+ # 1. Tag the commit to a specific version, e.g. `v0.3.1`.
39+ git tag " ${versioned_release_tag} "
40+
41+ # 2. Push release branch to GitHub.
42+ git push https://github.com/Stackdriver/stackdriver-prometheus-sidecar.git " ${versioned_release_branch} "
43+
44+ # 3. Push tag to GitHub.
45+ git push https://github.com/Stackdriver/stackdriver-prometheus-sidecar.git " ${versioned_release_tag} "
46+
You can’t perform that action at this time.
0 commit comments