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
stage: clean stage_build stage_publish
prod: clean build publish
clean:
rm -rf build
build:
posty build
stage: clean stage_build stage_push
publish:
rsync -auvP build/ golf:web
stage_build:
posty build -c config.staging.yml
stage_push:
gsutil -m rsync -c -d -r build/ gs://test2.nickpegg.com
# TODO: add a `publish` task when ready to roll to prod
stage_publish:
gsutil -m rsync -c -d -r build/ gs://$(STAGING_SITE)