-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (39 loc) · 1.32 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
61
62
63
64
65
66
67
68
69
install: build up status
prod-install: prod-up prod-status
prod-upgrade:
docker pull craftcamp/website
docker-compose -f production.yml up -d game
up:
docker-compose up -d
prod-up:
docker-compose -f production.yml up -d
restart:
docker-compose stop game && docker-compose up -d game
prod-restart:
docker-compose -f production.yml stop game && docker-compose -f production.yml up -d game
run:
docker exec -it craftcamp_website /bin/bash
stop:
docker-compose stop
prod-stop:
docker-compose -f production.yml stop
rm:
docker-compose down
prod-rm:
docker-compose -f production.yml down
build:
tar -C volumes/apps -cvzf applications/website/archives/official_website.tar.gz official-website --exclude .git --exclude *.log
docker-compose build
status:
docker-compose ps
prod-status:
docker-compose -f production.yml ps
build-all: build-website
build-website:
$(eval version = $(shell git -C volumes/apps/official-website describe --tags))
tar -C volumes/apps -cvzf applications/website/archives/official_website.tar.gz official-website --exclude .git --exclude *.log
docker-compose build website
docker tag craftcamp/website craftcamp/website:$(version)
docker tag craftcamp/website craftcamp/website:latest
docker push docker.io/craftcamp/website:$(version)
docker push docker.io/craftcamp/website:latest