-
Notifications
You must be signed in to change notification settings - Fork 1
/
batect-bundle.yml
70 lines (65 loc) · 2.08 KB
/
batect-bundle.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
65
66
67
68
69
70
config_variables:
resultsDirectory:
description: The directory from the batect project root where the storyshots screenshots will be stored.
default: storyshots
configPath:
description: The path from the batect project root to the storyshots config file.
default: .storyshots.config.json
staticDirectory:
description: The path from the batect project root to the storybook static directory.
default: storybook-static
storybookUrl:
description: The URL of the storybook server.
default: http://storybook-server:80
containers:
storyshots:
image: eichelkrautadam/storyshots:0.10.2
volumes:
- local: <{batect.project_directory}/<{resultsDirectory}
container: /storyshots/storyshots
- local: <{batect.project_directory}/<{resultsDirectory}/test-results
container: /storyshots/test-results
- local: <{batect.project_directory}/<{configPath}
container: /storyshots/.storyshots.json:ro
environment:
STORYSHOTS_STORY: ${STORYSHOTS_STORY:-}
STORYBOOK_URL: <{storybookUrl}
run_as_current_user:
enabled: true
home_directory: /storyshots
storybook-server:
image: nginx:alpine
volumes:
- local: <{batect.project_directory}/<{staticDirectory}
container: /usr/share/nginx/html
tasks:
storyshots:
dependencies:
- storybook-server
run:
container: storyshots
environment:
DEBUG: ${DEBUG:-}
LOCAL_RESULTS_DIR: <{resultsDirectory}
CONFIG_FILE: <{configPath}
storyshots-update:
dependencies:
- storybook-server
run:
container: storyshots
environment:
DEBUG: ${DEBUG:-}
LOCAL_RESULTS_DIR: <{resultsDirectory}
CONFIG_FILE: <{configPath}
command: ./runtime/scripts/storyshots.update.sh
storyshots-list:
dependencies:
- storybook-server
run:
container: storyshots
environment:
STORYSHOTS_LIST: true
DEBUG: ${DEBUG:-}
LOCAL_RESULTS_DIR: <{resultsDirectory}
CONFIG_FILE: <{configPath}
command: ./runtime/scripts/storyshots.list.sh