-
Notifications
You must be signed in to change notification settings - Fork 1
/
batect.yml
44 lines (43 loc) · 1000 Bytes
/
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
containers:
ruby:
build_directory: .
volumes:
- local: .
container: /mnt
options: cached
- type: cache
name: bundle-cache
container: /bundle-cache
working_directory: /mnt
environment:
BUNDLE_PATH: /bundle-cache
run_as_current_user:
enabled: true
home_directory: /home
tasks:
update:
description: Update Ruby Gems
run:
container: ruby
command: bundle update
install:
description: Install Ruby Gems
run:
container: ruby
command: bundle install
preview:
description: Run a server so that the content can be seen in a browser
prerequisites:
- install
run:
container: ruby
command: bundle exec middleman
ports:
- 4567:4567
build:
description: Build the HTML files and output to ./public
prerequisites:
- install
run:
container: ruby
command: bundle exec middleman build --build-dir=public/ --clean