We're following semantic versioning approach to releases in Grafeas server. See versioning document for the rationale of API, server, and client versioning.
Modify the Grafeas version values for the containers in these locations:
Assemble all the meaningful changes since the last release into the CHANGELOG.md file.
Make sure your fork of the repository is updated. Assuming git remote
shows the origin
(the fork) and upstream
(the main repository), do:
git pull origin master
git pull upstream master
git tag -am "grafeas-vX.Y.Z release" vX.Y.Z
git push upstream --tags
NOTE: the last command will not work if you set git remote set-url --push upstream no_push
as described in DEVELOPMENT.md. You will need to re-enable the push
for this to work, so proceed with caution.
You can find the releases in GitHub, e.g. v0.1.0.
Ensure you have the right access to push images. Set up the gcloud
project:
PROJECT=grafeas
gcloud config set project $PROJECT
gcloud auth configure-docker
... gcloud credential helpers already registered correctly.
Now, build the Grafeas server image inside the fork, go/src/github.com/grafeas/grafeas
:
docker build --tag=grafeas .
docker tag grafeas us.gcr.io/grafeas/grafeas-server:vX.Y.Z
docker push us.gcr.io/grafeas/grafeas-server:vX.Y.Z
You'll need a service account key for grafeas-helm-manual-release
. Ask the maintainers team for the key, or to execute the following commands on your behalf:
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/json-key.json"
Inside the fork, go/src/github.com/grafeas/grafeas
, run the commands below:
cd grafeas-charts
helm plugin install https://github.com/hayorov/helm-gcs
helm repo add grafeas-charts-repository gs://grafeas-charts/repository
helm package .
helm gcs push grafeas-charts-*.tgz grafeas-charts-repository
Navigate to the grafeas
GCP project and confirm the new image has been uploaded to the registry, and the new Helm chart is on the list of items in Cloud Storage.