Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maintenance: Prepare for the initial release #21

Merged
merged 3 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Release
on:
push:
tags:
- 'v*'
- "v*"

# Releases need permissions to read and write the repository contents.
# GitHub considers creating releases and uploading assets as writing contents.
Expand All @@ -23,14 +23,14 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: 'go.mod'
go-version-file: "go.mod"
cache: true
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
id: import_gpg
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
with:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Terraform Provider for Defined.net

Documentation: https://registry.terraform.io/providers/smaily/definednet/latest/docs
Documentation: https://registry.terraform.io/providers/sendsmaily/definednet/latest/docs

## Requirements

Expand Down Expand Up @@ -50,4 +50,4 @@ In order to run the full suite of Acceptance tests, run `make testacc`.
make testacc
```

> Consult the official documentation for more information on the test framework's internals: https://developer.hashicorp.com/terraform/plugin/sdkv2/testing/acceptance-tests.
> Consult the official documentation for more information on the test framework's internals: https://developer.hashicorp.com/terraform/plugin/testing.
7 changes: 6 additions & 1 deletion internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/sendsmaily/terraform-provider-definednet/internal/definednet"
"github.com/sendsmaily/terraform-provider-definednet/internal/host"
"github.com/sendsmaily/terraform-provider-definednet/internal/lighthouse"
)

const (
Expand Down Expand Up @@ -69,7 +71,10 @@ func (p *Provider) Configure(ctx context.Context, req provider.ConfigureRequest,

// Resources returns a slice of resources available on the provider.
func (p *Provider) Resources(ctx context.Context) []func() resource.Resource {
return nil
return []func() resource.Resource{
lighthouse.NewResource,
host.NewResource,
}
}

// DataSources returns a slice of data sources available on the provider.
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func main() {
flag.Parse()

opts := providerserver.ServeOpts{
Address: "registry.terraform.io/smaily/definednet",
Address: "registry.terraform.io/sendsmaily/definednet",
Debug: debug,
}

Expand Down