Skip to content

Commit

Permalink
Switch to API key
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtmc authored and Kurt McAlpine committed Jun 7, 2022
1 parent 5c2d556 commit 4685f95
Show file tree
Hide file tree
Showing 21 changed files with 313 additions and 1,391 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/acctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Go
uses: actions/[email protected]
with:
go-version: '1.15'
go-version: '1.18'
id: go

- name: Check out code into the Go module directory
Expand All @@ -41,14 +41,15 @@ jobs:
fail-fast: false
matrix:
terraform:
- '0.13.7'
- '1.1.4'
- '1.0.11'
- '1.1.9'
- '1.2.2'
steps:

- name: Set up Go
uses: actions/[email protected]
with:
go-version: '1.15'
go-version: '1.18'
id: go

- name: Check out code into the Go module directory
Expand All @@ -63,8 +64,6 @@ jobs:
env:
TF_ACC: "1"
TF_ACC_TERRAFORM_VERSION: ${{ matrix.terraform }}

PLAUSIBLE_USERNAME: ${{ secrets.PLAUSIBLE_USERNAME }}
PLAUSIBLE_PASSWORD: ${{ secrets.PLAUSIBLE_PASSWORD }}
PLAUSIBLE_API_KEY: ${{ secrets.PLAUSIBLE_API_KEY }}
run: |
go test -v -cover ./internal/provider/
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
-
name: Import GPG key
id: import_gpg
Expand Down
5 changes: 2 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ description: |-

### Optional

- **password** (String) Plausible password. Can be specified with the `PLAUSIBLE_PASSWORD` environment variable.
- **url** (String) Plausible URL. Can be specified with the `PLAUSIBLE_URL` environment variable.
- **username** (String) Plausible username. Can be specified with the `PLAUSIBLE_USERNAME` environment variable.
- `api_key` (String) Plausible API KEY. Can be specified with the `PLAUSIBLE_API_KEY` environment variable.
- `url` (String) Plausible URL. Can be specified with the `PLAUSIBLE_URL` environment variable.
31 changes: 0 additions & 31 deletions docs/resources/goal.md

This file was deleted.

32 changes: 0 additions & 32 deletions docs/resources/shared_link.md

This file was deleted.

8 changes: 4 additions & 4 deletions docs/resources/site.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ description: |-

### Required

- **domain** (String)
- **timezone** (String)
- `domain` (String)
- `timezone` (String)

### Read-Only

- **id** (String) The site ID
- **javascript_snippet** (String) Include this snippet in the <head> of your website.
- `id` (String) The site ID
- `javascript_snippet` (String) Include this snippet in the <head> of your website.


66 changes: 63 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,68 @@
module github.com/mcalpinefree/terraform-provider-plausible

go 1.17
go 1.18

require github.com/hashicorp/terraform-plugin-sdk/v2 v2.17.0

require (
github.com/PuerkitoBio/goquery v1.8.0
github.com/hashicorp/terraform-plugin-sdk/v2 v2.10.1
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.1.1 // indirect
github.com/Masterminds/sprig/v3 v3.2.2 // indirect
github.com/agext/levenshtein v1.2.3 // indirect
github.com/apparentlymart/go-cidr v1.1.0 // indirect
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/bgentry/speakeasy v0.1.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-cmp v0.5.8 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/hashicorp/errwrap v1.1.0 // indirect
github.com/hashicorp/go-checkpoint v0.5.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect
github.com/hashicorp/go-hclog v1.2.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/hashicorp/go-plugin v1.4.4 // indirect
github.com/hashicorp/go-uuid v1.0.3 // indirect
github.com/hashicorp/go-version v1.5.0 // indirect
github.com/hashicorp/hc-install v0.3.2 // indirect
github.com/hashicorp/hcl/v2 v2.12.0 // indirect
github.com/hashicorp/logutils v1.0.0 // indirect
github.com/hashicorp/terraform-exec v0.16.1 // indirect
github.com/hashicorp/terraform-json v0.14.0 // indirect
github.com/hashicorp/terraform-plugin-docs v0.9.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.9.1 // indirect
github.com/hashicorp/terraform-plugin-log v0.4.0 // indirect
github.com/hashicorp/terraform-registry-address v0.0.0-20220510144317-d78f4a47ae27 // indirect
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect
github.com/huandu/xstrings v1.3.2 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mitchellh/cli v1.1.4 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/posener/complete v1.2.3 // indirect
github.com/russross/blackfriday v1.6.0 // indirect
github.com/shopspring/decimal v1.3.1 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect
github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect
github.com/vmihailenco/tagparser v0.1.2 // indirect
github.com/zclconf/go-cty v1.10.0 // indirect
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e // indirect
golang.org/x/net v0.0.0-20220531201128-c960675eff93 // indirect
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
golang.org/x/text v0.3.7 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20220531173845-685668d2de03 // indirect
google.golang.org/grpc v1.47.0 // indirect
google.golang.org/protobuf v1.28.0 // indirect
)
Loading

0 comments on commit 4685f95

Please sign in to comment.