Skip to content

koalificationio/terraform-provider-webhookrelay

Repository files navigation

terraform-provider-webhookrelay

Build Status

Terraform provider for Webhookrelay

Using the Provider

For installation instructions and resource documentation check provider page on terraform registry.

Developing the Provider

Clone repository to: $HOME/development/koalificationio/

$ mkdir -p $HOME/development/koalificationio/; cd $HOME/development/koalificationio/
$ git clone https://github.com/koalificationio/terraform-provider-webhookrelay
...

Enter the provider directory and run make tools. This will install the needed tools for the provider.

$ make tools

To compile the provider, run make build. This will build the provider and put the provider binary in the $GOPATH/bin directory.

$ make build
...
$ $GOPATH/bin/terraform-provider-webhookrelay
...

Testing the Provider

In order to test the provider, you can run make test.

$ make test

In order to run the full suite of Acceptance tests, run make testacc.

Note: Acceptance tests create real resources, and often cost money to run.

$ make testacc TESTARGS='-run='

Releasing the Provider

$ fingerprint=$(gpg --with-colons --list-key <key@email> | awk -F: '$1 == "fpr" {print $10;}' | head -n 1)
$ export GPG_FINGERPRINT="${fingerprint}"
$ export GITHUB_TOKEN=xxx
$ git tag v0.x.x -s
$ goreleaser release --rm-dist