add prod deploy

This commit is contained in:
Nick Pegg 2018-01-21 18:34:22 -08:00
parent a21a8f19cf
commit c062306324

View file

@ -1,17 +1,23 @@
STAGING_SITE = test2.nickpegg.com
all: clean build stage all: clean build stage
stage: clean stage_build stage_publish
prod: clean build publish
clean: clean:
rm -rf build rm -rf build
build: build:
posty build posty build
stage: clean stage_build stage_push publish:
rsync -auvP build/ golf:web
stage_build: stage_build:
posty build -c config.staging.yml posty build -c config.staging.yml
stage_push: stage_publish:
gsutil -m rsync -c -d -r build/ gs://test2.nickpegg.com gsutil -m rsync -c -d -r build/ gs://$(STAGING_SITE)
# TODO: add a `publish` task when ready to roll to prod