From 734b3331216b19133ba315adcdd79e18ea707c1e Mon Sep 17 00:00:00 2001 From: David Jumani Date: Tue, 22 Nov 2022 16:14:20 +0530 Subject: [PATCH] docs: Adding steps for creating a release (#188) --- docs/book/src/SUMMARY.md | 1 + docs/book/src/development/releasing.md | 39 ++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 docs/book/src/development/releasing.md diff --git a/docs/book/src/SUMMARY.md b/docs/book/src/SUMMARY.md index f0d184b4..144f698c 100644 --- a/docs/book/src/SUMMARY.md +++ b/docs/book/src/SUMMARY.md @@ -14,3 +14,4 @@ - [Development With Tilt](development/tilt.md) - [Building CAPC](development/building.md) - [E2E Tests](development/e2e.md) + - [Releasing](development/releasing.md) \ No newline at end of file diff --git a/docs/book/src/development/releasing.md b/docs/book/src/development/releasing.md new file mode 100644 index 00000000..0cfbc701 --- /dev/null +++ b/docs/book/src/development/releasing.md @@ -0,0 +1,39 @@ +# Releasing Cluster API Provider for CloudStack + +## Prerequisites: + +1. Please install the following tools : + - [go][go] + - [Docker][docker-install] + - [gcloud][gcloud-install] + +2. Set up and log in to gcloud by running `gcloud init` + > In order to publish any artifact, you need to be a member of the [k8s-infra-staging-capi-cloudstack][k8s-infra-staging-capi-cloudstack] group + +## Creating only the docker container + +If you would just like to build only the docker container and upload it rather than creating a release, you can run the following command : +``` +REGISTRY= IMAGE_NAME= TAG= make docker-build +``` +It defaults to `gcr.io/k8s-staging-capi-cloudstack/capi-cloudstack-controller:dev` + + +## Creating a new release + +Run the following command to create the new release artifacts as well as publish them to the upstream gcr.io repository : +``` +RELEASE_TAG= make release-staging +``` + +Create the necessary release in GitHub along with the following artifacts ( found in the `out` directory after running the previous command ) +- metadata.yaml +- infrastructure-components.yaml +- cluster-template*.yaml + + + +[docker-install]: https://www.docker.com/ +[go]: https://golang.org/doc/install +[gcloud-install]: https://cloud.google.com/sdk/docs/install +[k8s-infra-staging-capi-cloudstack]: https://github.com/kubernetes/k8s.io/blob/main/groups/sig-cluster-lifecycle/groups.yaml#L106 \ No newline at end of file