-
Notifications
You must be signed in to change notification settings - Fork 49
/
Makefile
25 lines (23 loc) · 1.06 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
25
configuration_repo = ../configuration
configuration_files = config/production.yml config/staging.yml config/staging-build.properties config/production-build.properties
.NOTPARALLEL:
.PHONY: help copy-config deploy-staging deploy-production
help:
@echo "This makefile defines the following targets:"
@echo " * help: Show this message"
@echo " * copy-config: Copies configuration from the configuration repo into the config directory"
@echo " + configuration_repo variable may be set to control where to read from"
@echo " (defaults to $(configuration_repo))"
@echo " * deploy-staging: Builds and pushes a staging image"
@echo " * deploy-production: Builds and pushes a production image"
config:
mkdir -p config
mkdir -p config/appengine-production
mkdir -p config/appengine-staging
$(configuration_files): config/%: $(configuration_repo)/storage/% | config
cp "$<" "$@"
copy-config: $(configuration_files)
deploy-staging: copy-config
./mvnw clean deploy -Denv=staging
deploy-production: copy-config
./mvnw clean deploy -Denv=production