This section describes how to build and deploy publicly available releases of the Step CA.
New releases are (almost) entirely built and deployed by Travis-CI. Creating a new release is as simple as pushing a new github tag.
Definitions:
-rc* suffix on the version.
e.g. v1.0.2-rc* suffix. e.g. v1.0.2-rc or v1.0.2-rc.4Release cli first
If you plan to release cli as part of
this release, cli must be released first. The certificates docker container
depends on the cli container. Make certain to wait until the cli travis
build has completed.
Update the version of step/cli
$ dep ensure -update github.com/smallstep/cli
Commit all changes.
Make sure that the local checkout is up to date with the remote origin and that all local changes have been pushed.
$ git pull --rebase origin master
$ git push
Tag it!
Find the most recent tag.
$ git fetch --tags
$ git tag
The new tag needs to be the logical successor of the most recent existing tag. See versioning section for more information on version numbers.
Select the type and value of the next tag.
Is the new release a release candidate or a standard release?
Release Candidate
If the most recent tag is a standard release, say v1.0.2, then the version
of the next release candidate should be v1.0.3-rc.1. If the most recent tag
is a release candidate, say v1.0.2-rc.3, then the version of the next
release candidate should be v1.0.2-rc.4.
Standard Release
If the most recent tag is a standard release, say v1.0.2, then the version
of the next standard release should be v1.0.3. If the most recent tag
is a release candidate, say v1.0.2-rc.3, then the version of the next
standard release should be v1.0.3.
Create a local tag.
# standard release
$ git tag v1.0.3
...or
# release candidate
$ git tag v1.0.3-rc.1
Push the new tag to the remote origin.
# standard release
$ git push origin tag v1.0.3
...or
# release candidate
$ git push origin tag v1.0.3-rc.1
Check the build status at Travis-CI.
Travis will begin by verifying that there are no compilation or linting errors
and then run the unit tests. Assuming all the checks have passed, Travis will
build Darwin and Linux artifacts (for easily installing step) and upload them
as part of the Github Release.
Travis will build and upload the following artifacts:
Update the AUR Arch Linux package
NOTE: if you plan to release
clinext then you can skip this step.
$ cd archlinux
# Get up to date...
$ git pull origin master
$ make
$ ./update --ca v1.0.3
Update the Helm packages
NOTE: This is an optional step, only necessary if we want to release a new helm package.
Once we have the docker images, we can release a new version in our Helm repository we need to pull the helm-charts project, and change the following:
version number (Helm Chart version).appVersion to the step-certificates version.image.tag to the appropriate version.Then create the step-certificates package running:
$ helm package ./step-certificates
A new file like step-certificates-<version>.tgz will be created.
Now commit and push your changes (don't commit the tarball) to the master
branch of smallstep/helm-charts
Next checkout the gh-pages branch. git add the new tar-ball and update
the index.yaml using the helm repo index command:
$ git checkout gh-pages
$ git add "step-certificates-.tgz"
$ helm repo index --merge index.yaml --url https://smallstep.github.io/helm-charts/ .
$ git commit -a -m "Add package for step-certificates "
$ git push origin gh-pages
All Done!
We use SemVer for versioning. See the tags on this repository for all available versions.