-
Notifications
You must be signed in to change notification settings - Fork 176
Mongodb Provider Pre release and Release
- We need to install the github changelog generator (you may need to install previously Ruby in order to run the tool, you can check the ruby installation page)
Note: When install ruby, be sure that you set into your PATH the ruby bin path, just to avoid errors when try to install the
github-changelog-generator
- after the installation, we need to set an enviroment variable in order connect to github
export CHANGELOG_GITHUB_TOKEN="«your-40-digit-github-token»"
-
Create another branch to work with the prerelease as a normal jira ticket
-
Checkout the new branch
-
In the root of the provider project, run the following command:
github_changelog_generator -u mongodb -p terraform-provider-mongodbatlas
- in the
CHANGELOG.MD
file, change theunreleased
title, using the current template, like this:
## [Unreleased](https://github.com/mongodb/terraform-provider-mongodbatlas/tree/HEAD) <---REMOVE
## [v1.0.2-pre.1](https://github.com/mongodb/terraform-provider-mongodbatlas/tree/v1.0.2-pre.1) (2021-10-04)
[Full Changelog](https://github.com/mongodb/terraform-provider-mongodbatlas/compare/v1.0.1...v1.0.2-pre.1)
-
Commit, push and create the pull request, and wait for the approval before merge to master
-
When it is merged, we need to create a new tag for the pre-release:
git checkout master
git pull origin
git tag v1.0.2-pre.1
git push origin v1.0.2-pre.1
- Wait for the release job finish in github actions to build the binaries.
To check if this process was done correctly, in github, go to the code section of the repository >
releases
>edit
Must show the built binaries.
Note: Please check the
this is a pre-release
option (DON'T FORGET this step, because otherwise, it will reflect this as a normal release in terraform registry
- Notify to Mongo about the release of the
pre-release
- For provider release is almost the same steps than the pre-release process above noted.
-
Create another branch to work with the release as a normal jira ticket
-
Checkout the new branch
-
Check the documentation (datasources, resources and guides) for any incorrect change, in the
guides
, be sure that the new guide created contains a valid title based on the official terraform documentation for providers -
In the root of the provider project, run the following command:
github_changelog_generator -u mongodb -p terraform-provider-mongodbatlas
- in the
CHANGELOG.MD
file, change theunreleased
title, using the current template, like this:
## [Unreleased](https://github.com/mongodb/terraform-provider-mongodbatlas/tree/HEAD) <---REMOVE
## [v1.0.2](https://github.com/mongodb/terraform-provider-mongodbatlas/tree/v1.0.2) (2021-10-04)
[Full Changelog](https://github.com/mongodb/terraform-provider-mongodbatlas/compare/v1.0.2-pre.1...v1.0.2)
Note: Be sure that in case that exists a new mongo go-client release, update the
go.mod
file in the provider before push the pull request for release
-
Commit, push and create the pull request, and wait for the approval before merge to master
-
When it is merged, we need to create a new tag for the release:
git checkout master
git pull origin
git tag v1.0.2
git push origin v1.0.2
- Wait for the release job finish in github actions to build the binaries
To check if this process was done correctly, in github, go to the code section of the repository >
releases
>edit
Must show the built binaries.
Note: Please uncheck the
this is a pre-release
option (DON'T FORGET this step, because otherwise, it will reflect this as a pre-release and the provider will not be updated in terraform registry)
- Notify to Mongo about the release of the
release