forked from google/appengine-phabricator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (19 loc) · 1.15 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
build:
# To clean the sub-module and build the xhpast binary needed to find any new class in Docker env
git submodule foreach 'git clean -fX'
docker build -t google/phabricator-appengine .
deploy_requirements:
if [ -z "${PROJECT}" ]; then echo "Usage: make deploy PROJECT=<YOUR_GCP_PROJECT>"; exit 1; fi
deploy: build deploy_requirements
./install.sh "${PROJECT}"
# Note: The following make targets all require permissions to push to the corresponding gcr.io
# bucket. This means that they are only provided for the core dev team members with that
# permission. Anyone else should simply run the "build" make target, and then run the
# locally-tagged "google/phabricator-appengine" image.
testing: build
docker tag -f google/phabricator-appengine gcr.io/developer_tools_bundle/bundle-phabricator:testing
gcloud docker push gcr.io/developer_tools_bundle/bundle-phabricator:testing
release:
gcloud docker pull gcr.io/developer_tools_bundle/bundle-phabricator:testing
docker tag -f gcr.io/developer_tools_bundle/bundle-phabricator:testing gcr.io/developer_tools_bundle/bundle-phabricator:latest
docker push gcr.io/developer_tools_bundle/bundle-phabricator:latest