blob: d209a3d56eef1ac4fe65fcfb15bbbe664bb5dc76 [file] [log] [blame]
# Copyright 2018 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
projdir := $(patsubst %/,%,$(dir $(mkfile_path)))
deploy := $(abspath $(projdir)/../../../../infra_internal/appengine/deploy.py)
deploy-check:
ifeq (,$(wildcard $(deploy)))
$(error $(deploy) not found, deployment is only supported inside an infra_internal checkout)
endif
up: deploy-check
$(deploy) --group luci-prod --push --service swarming
switch: deploy-check
$(deploy) --group luci-prod --switch --service swarming
dev:
gae.py devserver -A swarming-local --app-dir . -- --port 9050 --admin_port 8200 --log_level debug
# Used by Spinnaker to build the Appengine artifact.
# See: https://g3doc.corp.google.com/company/teams/chrome/ops/devx/prod_tech/releases/deploy_appengine.md#makefile
package_release:
rsync -aLK . $(TARDIR)/package
# Used by Spinnaker to build to fetch external dependencies.
# See: https://g3doc.corp.google.com/company/teams/chrome/ops/devx/prod_tech/releases/deploy_appengine.md#makefile
external_deps: