Clone the repository and move into it:
git clone [email protected]:dnsimple/policy-library-dnsimple-terraform.git
cd policy-library-dnsimple-terraform
You will require Sentinel (>= 0.23) to run the tests. You can download it from here.
To run a tests for a policy you can use the following command:
make test name="enforce_contact_id.sentinel"
Alternatively, you can run all the tests with:
make tests
The following instructions uses $VERSION
as a placeholder, where $VERSION
is a MAJOR.MINOR.BUGFIX
release such as 1.2.0
.
-
Run the test suite and ensure all the tests pass.
-
Finalize the
## main
section inCHANGELOG.md
assigning the version. -
Commit and push the changes
git commit -a -m "Release $VERSION" git push origin main
-
Wait for CI to complete.
-
Create a signed tag.
git tag -a v$VERSION -s -m "Release $VERSION" git push origin --tags
-
Tags are automatically published to the Terraform Policy Registry through webhooks.