-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (19 loc) · 801 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
24
25
26
all: deploy-site deploy-fns
build-fns:
rm -rf fns/bin || true
cd fns && GOARCH=amd64 CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o ./bin/fns
deploy-fns: build-fns
cd fns && ./node_modules/serverless/bin/serverless.js deploy --verbose --force
build-site:
npm run build
deploy-site: build-site
AWS_PAGER="" aws s3 sync _site/. s3://johnjonesfour.com --profile personal
AWS_PAGER="" aws cloudfront create-invalidation --distribution-id E3TRIT7GNH2EU --paths '/*' --profile personal
provision-bot-role:
aws cloudformation update-stack --stack-name johnjonesfourdotcom-bot --template-body file://bot_role.yml --capabilities CAPABILITY_NAMED_IAM
install:
npm install
cd fns && npm install
cd fns && go get .
resume:
pandoc -i content/resume.md -o public/john_e_jones_iv_resume.pdf