-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (34 loc) · 889 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
.PHONY: backup-dump
install:
pnpm install
npx husky install
$(MAKE) -C frontend install
run-frontend:
$(MAKE) -C frontend dev
test:
$(MAKE) -C frontend test
lint:
$(MAKE) -C frontend lint
lint-staged:
$(MAKE) -C frontend lint-staged
run-db:
docker compose up -d --pull=always postgres
stop-db:
docker compose stop postgres
down-db:
docker compose down postgres
run-es:
docker compose up -d --pull=always es8
stop-es:
docker compose stop es8
down-es:
docker compose down es8
workflow:
# .secrets should have GITHUB_TOKEN
# .env should have GITHUB_ACTOR
act -W .github/workflows/deploy.yml -s GITHUB_TOKEN=$(cat .secrets | grep GITHUB_TOKEN | cut -d '=' -f2) --env-file .env
# setup and run when deploying on server
setup:
echo "nothing to see here"
run:
docker compose -f docker-compose.yml -f docker-compose.prod.yml up --pull=always -d --remove-orphans