Skip to content

Commit

Permalink
chore: prepare release v0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Jul 11, 2021
1 parent 7df8011 commit 9cd382e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion caddy/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replace github.com/dunglas/mercure => ../

require (
github.com/caddyserver/caddy/v2 v2.3.0
github.com/dunglas/mercure v0.11.3
github.com/dunglas/mercure v0.12.0
github.com/prometheus/client_golang v1.10.0
github.com/stretchr/testify v1.7.0
go.uber.org/zap v1.16.0
Expand Down
4 changes: 2 additions & 2 deletions charts/mercure/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ keywords:
- streaming-api
- async-api
type: application
version: 0.11.3
appVersion: "v0.11.3"
version:
appVersion: "v"
maintainers:
- name: dunglas
email: kevin@dunglas.fr
Expand Down
2 changes: 1 addition & 1 deletion charts/mercure/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Mercure Chart for Kubernetes

![Version: 0.11.3](https://img.shields.io/badge/Version-0.11.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.11.3](https://img.shields.io/badge/AppVersion-v0.11.3-informational?style=flat-square)
![Version: ](https://img.shields.io/badge/Version--informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v](https://img.shields.io/badge/AppVersion-v-informational?style=flat-square)

A Helm chart to install a Mercure Hub in a Kubernetes cluster. Mercure is a protocol to push data updates to web browsers and other HTTP clients in a convenient, fast, reliable and battery-efficient way.

Expand Down
6 changes: 3 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ if [ $# -ne 1 ]; then
exit 1
fi

# https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
if [[ ! $1 =~ ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$ ]]; then
# Adapted from https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string
if [[ ! $1 =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))?$ ]]; then
echo "Invalid version number: $1" >&2
exit 1
fi
Expand All @@ -37,7 +37,7 @@ cd caddy/
go get "github.com/dunglas/mercure@v$1"
cd -

sed -i '' -e "s/^version: .*$/version: $1/" -e "s/^appVersion: .*$/appVersion: \"v$1\"/" helm/mercure/Chart.yaml
sed -i '' -e "s/^version: .*$/version: $1/" -e "s/^appVersion: .*$/appVersion: \"v$1\"/" charts/mercure/Chart.yaml
helm-docs

git commit -S -a -m "chore: prepare release $1"
Expand Down

0 comments on commit 9cd382e

Please sign in to comment.