Skip to content

Commit 11c3109

Browse files
Merge pull request #64 from codefresh-io/sharon-test
add install phase for dev
2 parents f8c112f + 1a1dc34 commit 11c3109

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

GNUmakefile

+10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
TEST?=$$(go list ./... |grep -v 'vendor')
22
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
33
WEBSITE_REPO=github.com/hashicorp/terraform-website
4+
HOSTNAME=codefresh.io
45
PKG_NAME=codefresh
6+
NAMESPACE=codefresh-io
7+
BINARY=terraform-provider-${PKG_NAME}
8+
VERSION=0.0.1
9+
OS_ARCH=darwin_amd64
510

611
default: build
712

@@ -12,6 +17,11 @@ tools:
1217

1318
build: fmtcheck
1419
go install
20+
go build -o ${BINARY}
21+
22+
install: build
23+
mkdir -p ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${PKG_NAME}/${VERSION}/${OS_ARCH}
24+
mv ${BINARY} ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${PKG_NAME}/${VERSION}/${OS_ARCH}
1525

1626
fmt:
1727
@echo "==> Fixing source code with gofmt..."

0 commit comments

Comments
 (0)