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
|
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
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue