-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (39 loc) · 966 Bytes
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
VERSION_FILE=VERSION
DOCKER_REPO=DOCKER_REPO
APP_NAME=APP_NAME
.PHONY: major
major:
semver up major > $(VERSION_FILE)
.PHONY: minor
minor:
semver up minor > $(VERSION_FILE)
.PHONY: patch
patch:
semver up release > $(VERSION_FILE)
.PHONY: rc
rc:
semver up rc > $(VERSION_FILE)
.PHONY: beta
beta:
semver up beta > $(VERSION_FILE)
.PHONY: alpha
alpha:
semver up alpha > $(VERSION_FILE)
.PHONY: changelog
changelog:
conventional-changelog -p conventionalCommits -i CHANGELOG.md -s --skip-unstable -r 0
.PHONY: tag
tag:
git tag -a "$(shell cat $(VERSION_FILE))" -m "$(shell cat $(VERSION_FILE))"
.PHONE: tag-push
tag-push:
git push origin $(shell cat $(VERSION_FILE))
.PHONY: build
build:
docker compose -f deployments/docker-compose.local.yaml build
.PHONY: dev
dev:
docker compose -f deployments/docker-compose.local.yaml up
.PHONY: build-docker
build-docker:
docker build -f build/package/Dockerfile.production -t $(DOCKER_REPO)/$(APP_NAME) .