Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
James Guthrie edited this page Nov 17, 2021 · 55 revisions

Release checklist

Releasing promscale consists of the following steps:

Prepare and merge release PR

  • Update helm-chart/Chart.yml
  • Update Promscale, PromMigrator, and supported promscale_extension versions in pkg/version/version.go
  • Update prom-migrator version in .goreleaser (2 places)
  • Run bash generate-deploy-script.sh
  • Commit: git commit -a -m "Prepare for the 0.1.0-alpha.4 release"
  • PR & Merge

Prepare git tag

  • tag: git tag -a 0.1.0-alpha.1 -m "Release 0.1.0-alpha.1" && git push origin 0.1.0-alpha.1

Create release with goreleaser

  • make sure goreleaser action runs (manual run GITHUB_TOKEN=??? goreleaser -f build/.goreleaser)

Export helm charts

TODO: Who can export these images to charts.timescale.com?

  • Run helm package helm-chart/
  • Copy helm package into charts dir
  • in charts dir run
    • /usr/local/bin/aws --profile <profile> s3 sync s3://charts.timescale.com .
    • helm repo index .
    • /usr/local/bin/aws --profile <profile> s3 sync --acl public-read . s3://charts.timescale.com

Prepare GitHub release message

TODO: Convention for preparing release message

  • Update release message

Post-release

  • Update Version and PrevReleaseVersion in pkg/version/version.go to next devel version
  • Commit: git commit -a -m "Prepare for the next development cycle"
  • PR & Merge

(Optional) Update tobs

  • Update chart/Chart.yaml: change version, app-version and dependencies.timescale-prometheus.version
  • Update chart/values.yml: change promscale.image to the appropriate tag.
  • Update version.go
  • Update version in install-cli.sh
  • Run helm dependency update chart/
  • Run bash generate-deploy-script.sh
  • Run cd cli && go mod tidy && cd ..
  • Commit: git commit -a -m "Release 0.1.0-alpha.4"
  • PR, test locally, merge
  • git tag -a 0.1.0-alpha.1 -m "Release 0.1.0-alpha.1" && git push origin 0.1.0-alpha.1
  • make sure goreleaser action runs (manual run: cd cli && GITHUB_TOKEN=??? goreleaser && cd ..)
  • run helm package chart
  • Copy helm package into charts dir
  • in charts dir run
    • /usr/local/bin/aws --profile <profile> s3 sync s3://charts.timescale.com .
    • helm repo index .
    • /usr/local/bin/aws --profile <profile> s3 sync --acl public-read . s3://charts.timescale.com
Clone this wiki locally