Fixed Makefile
This commit is contained in:
parent
d42758f54c
commit
4a383437f3
10
Makefile
10
Makefile
@ -17,7 +17,7 @@ format:
|
|||||||
|
|
||||||
.PHONY: run-tests # Runs all tests
|
.PHONY: run-tests # Runs all tests
|
||||||
run-tests:
|
run-tests:
|
||||||
@echo "⚠️ 'run-tests' unimplemented"
|
@cd terraform && terraform plan
|
||||||
|
|
||||||
.PHONY: fetch-deps # Fetch all project dependencies
|
.PHONY: fetch-deps # Fetch all project dependencies
|
||||||
fetch-deps:
|
fetch-deps:
|
||||||
@ -41,11 +41,9 @@ run:
|
|||||||
|
|
||||||
.PHONY: ci # Perform CI specific tasks to perform on a pull request
|
.PHONY: ci # Perform CI specific tasks to perform on a pull request
|
||||||
ci:
|
ci:
|
||||||
@cd terraform
|
@PLAN=$(cd terraform && terraform plan ./terraform) && curl -X "POST" "https://git.cluster.fun/api/v1/repos/AverageMarcus/${REPO}/issues/${PR_ID}/comments?access_token=${ACCESS_TOKEN}" \
|
||||||
@PLAN=$(terraform plan)
|
|
||||||
@curl -X "POST" "https://git.cluster.fun/api/v1/repos/AverageMarcus/${REPO}/issues/${PR_ID}/comments?access_token=${ACCESS_TOKEN}" \
|
|
||||||
-H 'Content-Type: application/json; charset=utf-8' \
|
-H 'Content-Type: application/json; charset=utf-8' \
|
||||||
-d $'{"body": "<details><summary>Terraform Plan:</summary>'$PLAN'</details>"}'
|
-d $'{"body": "<details><summary>Terraform Plan:</summary>'"$PLAN"'</details>"}'
|
||||||
|
|
||||||
.PHONY: release # Release the latest version of the application
|
.PHONY: release # Release the latest version of the application
|
||||||
release:
|
release:
|
||||||
@ -60,4 +58,4 @@ help:
|
|||||||
@echo "-----------------------------------"
|
@echo "-----------------------------------"
|
||||||
@grep '^.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1 \2/' | expand -t20
|
@grep '^.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1 \2/' | expand -t20
|
||||||
|
|
||||||
default: test build
|
default: test
|
||||||
|
Loading…
Reference in New Issue
Block a user