-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample_config.yaml
More file actions
69 lines (59 loc) · 1.55 KB
/
example_config.yaml
File metadata and controls
69 lines (59 loc) · 1.55 KB
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
# Example machine_setup v2 configuration
# Demonstrates all command types and features
temp_dir: "~/.machine_setup"
default_shell: "bash"
parallel: false
tasks:
greet:
commands:
- run:
commands: "echo 'Hello from machine_setup v2!'"
multi_step:
commands:
- run:
commands:
- "echo 'Step 1: Checking environment...'"
- "echo 'Step 2: Configuring settings...'"
- "echo 'Step 3: All done!'"
with_env_vars:
commands:
- run:
env:
MY_NAME: "machine_setup"
VERSION: "2.0"
commands: "echo \"Running $MY_NAME v$VERSION\""
mode_specific:
commands:
- run:
install: "echo 'Installing components...'"
update: "echo 'Updating components...'"
uninstall: "echo 'Removing components...'"
windows_task:
os: "windows"
commands:
- run:
commands: "echo 'This runs only on Windows'"
linux_task:
os: "linux"
commands:
- run:
commands: "echo 'This runs only on Linux'"
macos_task:
os: "macos"
commands:
- run:
commands: "echo 'This runs only on macOS'"
cross_platform:
os: ["linux", "macos", "windows"]
commands:
- run:
commands: "echo 'This runs on all desktop platforms'"
parallel_commands:
parallel: true
commands:
- run:
commands: "echo 'Command A (parallel)'"
- run:
commands: "echo 'Command B (parallel)'"
- run:
commands: "echo 'Command C (parallel)'"