-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbatect.yml
64 lines (57 loc) · 1.3 KB
/
batect.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
containers:
node-env:
image: node:20.9.0
volumes:
- local: <{batect.project_directory}
container: /code
options: cached
- type: cache
name: node_modules
container: /code/node_modules
working_directory: /code
enable_init_process: true
run_as_current_user:
enabled: true
home_directory: /home/container-user
ports:
- 4000:8000
tasks:
shell:
description: Shell into node environment
run:
container: node-env
command: bash
install:
description: Install dependencies
run:
container: node-env
command: npm install
develop:
description: Run Gatsby in develop mode
prerequisites:
- install
run:
container: node-env
command: npm run develop
clean:
description: Clean up all Gatsby artifacts
run:
container: node-env
command: npm run clean
format:
description: Run prettier and format the codebase
run:
container: node-env
command: npm run format
build:
description: Build production site
run:
container: node-env
command: npm run build
publish:
description: Push to github pages
run:
container: node-env
command: ./scripts/publish.sh
environment:
GH_TOKEN: ${GH_TOKEN}