Skip to content

Commit

Permalink
Update version variable in Makefile to use $(VERSION).
Browse files Browse the repository at this point in the history
  • Loading branch information
htahir1 committed Oct 27, 2024
1 parent 7fe31ea commit a5eccc7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Makefile
VERSION ?= 0.1.0

default: testacc

# Run acceptance tests
Expand All @@ -19,8 +21,8 @@ build:
# Install provider locally
.PHONY: install
install: build
mkdir -p ~/.terraform.d/plugins/registry.terraform.io/zenml/zenml/0.1.0/$(shell go env GOOS)_$(shell go env GOARCH)
cp terraform-provider-zenml ~/.terraform.d/plugins/registry.terraform.io/zenml/zenml/0.1.0/$(shell go env GOOS)_$(shell go env GOARCH)/
mkdir -p ~/.terraform.d/plugins/registry.terraform.io/zenml/zenml/$(VERSION)/$(shell go env GOOS)_$(shell go env GOARCH)
cp terraform-provider-zenml ~/.terraform.d/plugins/registry.terraform.io/zenml/zenml/$(VERSION)/$(shell go env GOOS)_$(shell go env GOARCH)/

# Generate docs
.PHONY: docs
Expand All @@ -30,4 +32,4 @@ docs:
# Clean build artifacts
.PHONY: clean
clean:
rm -f terraform-provider-zenml
rm -f terraform-provider-zenml

0 comments on commit a5eccc7

Please sign in to comment.