-
Notifications
You must be signed in to change notification settings - Fork 1
/
robo.yml
64 lines (57 loc) · 1.21 KB
/
robo.yml
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
# Commands
build:
command: |
cd packages/next-web
pnpm build
cd -
cd packages/next-server
pnpm build
cd -
docker build -f Dockerfile.local -t patarapolw/rep2recall .
build-compose:
command: |
docker-compose build --force-recreate --no-deps
start:
command: |
robo -c {{ .robo.file }} kill
docker run --rm \
-p 8080:8080 \
-e MONGO_URI -e FIREBASE_SDK -e FIREBASE_CONFIG \
--name rep2recall \
{{.docker.tag}}
kill:
command: |
docker ps -q -f 'name=rep2recall' | xargs docker kill
deploy:
command: |
docker push {{.docker.tag}}
dev:
command: |
cd packages/next-server
rm -rf ./public
pnpx concurrently \
'cd ../next-web && pnpm watch' \
'pnpx wait-on ./public && pnpm dev'
install:
command: |
cd packages/next-web
echo 'shamefully-hoist=true' > .npmrc
pnpm i
cd -
cd packages/next-server
pnpm i
cd -
heroku-token:
command: |
heroku auth:token
heroku-docker-login:
command: |
docker login --username=_ --password=${HEROKU_TOKEN} registry.heroku.com
heroku-release:
command: |
heroku container:release web
##########
# Settings
variables:
docker:
tag: ${DOCKER_TAG:-rep2recall}