-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Adding steps for creating a release
- Loading branch information
1 parent
ea48080
commit 588b8a8
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# 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` | ||
|
||
## 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=<your custom registry> IMAGE_NAME=<your custom image name> TAG=<your custom 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=<your custom 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 |