page_title |
---|
Development |
- Go 1.19 or later
- Terraform v0.13 or later
- Healthchecks.io account and an API key
- goreleaser 1.4.1
./run help
./run <command> [<arg1> <arg2> ...]
This is useful to test the provider during development.
Using ./run dev ...
will:
- build the provider (go build .)
- setup overrides for provider installation (see dev.tfrc)
- run the command as specified
./run dev <command> [<arg1> <arg2> ...]
Most commands can also be executed using docker. Simply run the commands like below.
./run docker <command> [<arg1> <arg2> ...]
./run build
./run docker build
./run test
./run docker test
NOTE: Depends on the output of the build command
./run test-integration
./run docker test-integration
NOTE: Depends on the output of the build command
./run examples [<example>]
./run docker examples [<example>]
./run prepare-release
This will prompt you for the next version. Make sure the version you choose follows Semantic Versioning and is prefixed with v
(example version: v1.0.0
).
When pushing a tag that match the terraform provider tag conventions, the automatic release pipeline will be triggered. See Publishing Providers for more information.
NOTE In general, manual releases should be avoided in favour of using the automatic release pipeline.
NOTE Only tags that follow semantic versioning should be released to the public.
./run release
./run docker release