Skip to content

Commit

Permalink
improve example setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauredg committed Dec 14, 2023
1 parent 4b9b5f1 commit 217456f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $ go build -o terraform-provider-datadome

1. Build the provider.

2. Install it.
2. Install it (you may need to change the value of `OS_ARCH` inside Makefile).

```shell
$ make install
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ NAME=datadome
BINARY=terraform-provider-${NAME}
VERSION=0.0.1
OS_ARCH=linux_amd64
#OS_ARCH=darwin_amd64

default: install

Expand Down Expand Up @@ -36,7 +37,7 @@ release-local:

install: build
mkdir -p ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH}
mv ${BINARY} ~/.terraform.d/plugins/${OS_ARCH}
mv ${BINARY} ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH}

test:
go test -i $(TEST) || exit 1
Expand Down

0 comments on commit 217456f

Please sign in to comment.