Skip to content

Commit

Permalink
feat: add semantic release support (#2)
Browse files Browse the repository at this point in the history
* feat: add sem release support

* lock package.json
  • Loading branch information
alexouzounis authored and ouzibot committed Oct 17, 2019
1 parent 411754d commit 6237a47
Show file tree
Hide file tree
Showing 4 changed files with 7,920 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.terraform
.terraform
node_modules/
19 changes: 16 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
.PHONY: clean init plan apply destroy format validate bootstrap-init bootstrap-plan bootstrap-apply bootstrap-destroy

# Get current directory
DIR := ${CURDIR}

Expand All @@ -8,19 +6,34 @@ CREDSTASH_VERSION := 0.4.0
CREDSTASH_DOWNLOAD_DARWIN_URL := https://github.com/sspinc/terraform-provider-credstash/releases/download/$(CREDSTASH_VERSION)/terraform-provider-credstash_darwin_amd64
CREDSTASH_FILEPATH := ~/.terraform.d/plugins/terraform-provider-credstash_v$(CREDSTASH_VERSION)

.PHONY: setup
setup:
@mkdir -p ~/.terraform.d/plugins
@curl -L "$(CREDSTASH_DOWNLOAD_DARWIN_URL)" -o $(CREDSTASH_FILEPATH) -z $(CREDSTASH_FILEPATH)
@chmod +x ~/.terraform.d/plugins/terraform-provider-credstash_v$(CREDSTASH_VERSION)

.PHONY: clean
clean:
@rm -rf .terraform

.PHONY: fmt
fmt:
@terraform fmt --recursive


.PHONY: init
init:
@terraform init -backend-config=backend.tfvars -backend-config=credentials=$(GOOGLE_APPLICATION_CREDENTIALS_PATH)

.PHONY: validate
validate:
@terraform validate .

.PHONY: semantic-release
semantic-release:
npm ci
npx semantic-release

.PHONY: semantic-release-dry-run
semantic-release-dry-run:
npm ci
npx semantic-release -d
Loading

0 comments on commit 6237a47

Please sign in to comment.