-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
24 lines (18 loc) · 1007 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
NAME=pdfgen
REPO=uneet/$(NAME)
dev:
@echo $$AWS_ACCESS_KEY_ID
jq '.profile |= "uneet-dev" |.stages.staging |= (.domain = "pdfgen.dev.unee-t.com" | .zone = "dev.unee-t.com")' up.json.in > up.json
up
localtest:
curl -X POST -d @tests/test.json -H "Authorization: Bearer $$(aws --profile uneet-dev ssm get-parameters --names API_ACCESS_TOKEN --with-decryption --query Parameters[0].Value --output text)" http://localhost:3000
remotetest:
curl -X POST -d @tests/test.json -H "Authorization: Bearer $$(aws --profile uneet-dev ssm get-parameters --names API_ACCESS_TOKEN --with-decryption --query Parameters[0].Value --output text)" https://pdfgen.dev.unee-t.com/
demo:
@echo $$AWS_ACCESS_KEY_ID
jq '.profile |= "uneet-demo" |.stages.staging |= (.domain = "pdfgen.demo.unee-t.com" | .zone = "demo.unee-t.com")' up.json.in > up.json
up
prod:
@echo $$AWS_ACCESS_KEY_ID
jq '.profile |= "uneet-prod" |.stages.staging |= (.domain = "pdfgen.unee-t.com" | .zone = "unee-t.com")' up.json.in > up.json
up