corso/website/Makefile
Niraj Tolia 67440951b7
Add a website README (#737)
Also nuke a CloudFront ID that isn't applicable to the Corso website

## Description

Adds a README for building the Corso website

## Type of change

Please check the type of change your PR introduces:
- [x] 🗺️ Documentation
2022-09-02 15:25:18 +00:00

26 lines
699 B
Makefile

.PHONY: buildimage dev shell build publish sync
buildimage:
docker build -t "corso/website:latest" .
dev:
docker run --rm -it -p 3000:3000 \
-v ${PWD}:/usr/src/website corso/website gulp
shell:
docker run --rm -it -p 3000:3000 \
-v ${PWD}:/usr/src/website corso/website /bin/bash
build:
docker run --rm -it \
-v ${PWD}:/usr/src/website corso/website gulp build
publish: build
docker run -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY \
-e AWS_SESSION_TOKEN --rm -v ${PWD}:/usr/src/website corso/website \
make sync
sync:
aws s3 sync /usr/src/website/dist/ s3://corsobackup.io/ --exclude ".git/*" --delete
aws cloudfront create-invalidation --distribution-id XXXXX --paths "/*"