-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 775 Bytes
/
Makefile
File metadata and controls
37 lines (28 loc) · 775 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
ifneq (,$(wildcard ./.env))
include .env
export
endif
## ====================
## LOCAL DEPLOYMENT
## ====================
VERSION?= $(shell git rev-parse --short HEAD)
GIT_BRANCH?= $(shell git rev-parse --abbrev-ref HEAD)
ci:
make test publish_pacts can_i_deploy $(DEPLOY_TARGET)
## ====================
## CI DEPLOYMENT
## ====================
publish_pacts:
@echo "========== STAGE: publish pacts =========="
docker-compose run publish_pacts
test:
@echo "========== STAGE: test 🧪 =========="
yarn run test
can_i_deploy:
@echo "========== STAGE: can-i-deploy? =========="
docker-compose run can_i_deploy
deploy:
@echo "========== STAGE: deploy =========="
@echo "Deploying to production"
record_deployment:
docker-compose run record_deployment