add prod deploy
This commit is contained in:
parent
a21a8f19cf
commit
c062306324
1 changed files with 11 additions and 5 deletions
16
Makefile
16
Makefile
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue