add basic makefile to save cloudflare credentials
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
6b308660d1
commit
6dd007e48b
|
@ -0,0 +1,20 @@
|
||||||
|
all: deps secrets init-terraform
|
||||||
|
@echo "Success!"
|
||||||
|
|
||||||
|
deps:
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
init-terraform:
|
||||||
|
terraform init -upgrade=true
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
echo "Saving secrets to: terraform.tfvars"
|
||||||
|
@echo "\
|
||||||
|
# secrets extracted from password-store\n\
|
||||||
|
cloudflare_token = \"$(shell pass cloud/Cloudflare/token)\"\n\
|
||||||
|
cloudflare_email = \"$(shell pass cloud/Cloudflare/email)\"\n\
|
||||||
|
cloudflare_org_id = \"$(shell pass cloud/Cloudflare/org_id)\"\n\
|
||||||
|
" > terraform.tfvars
|
||||||
|
|
||||||
|
cleanup:
|
||||||
|
rm -r $(PLUGIN_DIR)/$(ARCHIVE)
|
Loading…
Reference in New Issue