-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
60 lines (49 loc) · 1.29 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
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
53
54
55
56
57
58
59
60
VERSION_DEV = 0.2.1
VERSION_PROD = 0.1.0
commit:
mix test
mix format
mix credo --strict
git add .
git cz
commit-release-major:
mix bump_release major
mix test
mix format
mix credo --strict
git add .
git cz
commit-release-minor:
mix bump_release minor
mix test
mix format
mix credo --strict
git add .
git cz
commit-release-patch:
mix bump_release patch
mix test
mix format
mix credo --strict
git add .
git cz
dev-release:
mix deps.get
mix compile
mix release
builddockerprod:
docker build --tag gamezop/discovery .
docker tag gamezop/discovery gamezop/discovery:$(VERSION_PROD)
builddockerdev:
docker build --file dev.Dockerfile --tag gamezop/discovery .
docker tag gamezop/discovery gamezop/discovery:$(VERSION_DEV)
pushdockerdev: builddockerdev
docker push gamezop/discovery:$(VERSION_DEV)
# pushdockerprod: builddockerprod
# docker push gamezop/discovery:$(VERSION_PROD)
rundockerprod:
docker run --name discovery-$(VERSION_PROD) --publish 6968:6968 --detach --env DISCOVERY_PORT=6968 \
--env SECRET_KEY_BASE=${SECRET_KEY_BASE} gamezop/discovery:$(VERSION_PROD)
rundockerdev: builddockerdev
docker run --name discovery-$(VERSION_DEV) --publish 6966:6966 --detach --env DISCOVERY_PORT=6966 \
--env SECRET_KEY_BASE=${SECRET_KEY_BASE} gamezop/discovery:$(VERSION_DEV)