You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DOCS.md
+25-9Lines changed: 25 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,15 +17,28 @@ Typically, it runs in a separate folder to save the cache while keeping the code
17
17
Deployer is primarily a CLI utility. You can see help for any Deployer command by specifying the `-h` option. Here are some examples of the most common commands:
18
18
19
19
```bash
20
-
depl new action # create an Action and put in Registry
21
-
depl new pipeline # create a Pipeline and put in Registry
20
+
depl new action # create an action and put in Registry
21
+
depl new pipeline # create a pipeline and put in Registry
22
+
depl new content # add some content in Deployer's storage folder
22
23
depl new remote # add new remote host to Registry
24
+
25
+
depl ls actions/pipelines/content/remote # list all entities from Registries
26
+
depl cat action/pipeline/content/remote # display information about entiry from Registry
27
+
depl rm action/pipeline/content/remote # remove entity from Registry
28
+
23
29
depl init # init project, fill all attributes
24
30
31
+
depl edit project # edit project
32
+
depl edit .# (the same)
33
+
25
34
depl with # check compatibility and assign Pipeline to project,
26
35
# also specify needed variables and artifacts
27
36
37
+
depl use # use some content from Deployer's storage
38
+
28
39
depl run # run default Pipeline
40
+
depl # (the same)
41
+
29
42
depl run my-pipe # run specified `my-pipe` Pipeline
30
43
depl run configure,build -o build-folder # run `configure` and `build` Pipelines in a `build-folder`
31
44
depl run -R my-remote my-pipe # run `my-pipe` Pipeline on remote host `my-remote`
Deployer has support for a high-end terminal-based customizer, allowing you to forget about manually writing Actions and Pipelines for your projects. Just try to create an Action or Pipeline and Deployer will ask you about everything.
51
+
Deployer has support for a high-end terminal-based customizer, allowing you to forget about manually writing actions and Pipelines for your projects. Just try to create an action or Pipeline and Deployer will ask you about everything.
39
52
40
53
### Logs
41
54
@@ -47,7 +60,7 @@ In the Deployer build caches folder, there is a `logs` folder that contains proj
47
60
48
61
Action is the main entity of Deployer. Actions as part of pipelines are used to build, install, and deploy processes. However, an action itself cannot be assigned to a project, that's what pipelines are for (see below).
49
62
50
-
In the Deployer's Action Registry or project's actions list, an action looks like a construction:
63
+
In the Deployer's action Registry or project's actions list, an action looks like a construction:
51
64
52
65
```yaml
53
66
info: upx@0.1.0
@@ -75,14 +88,17 @@ requirements:
75
88
- /bin/upx
76
89
- /usr/bin/upx
77
90
- ~/.local/bin/upx
91
+
desc: "This is optional description with information about UPX installation steps."
78
92
# if this path exists, the requirement is considered satisfied
79
93
- type: exists
80
94
path: /usr/bin/mold
81
-
# if this check is passed, the requirement will be considered satisfied (for details, see below - Action `Check`)
95
+
desc: "Only optional"
96
+
# if this check is passed, the requirement will be considered satisfied (for details, see below - action `Check`)
82
97
- type: check_success
83
98
command:
84
99
cmd: /usr/bin/python -V
85
100
success_when_found: "Python 3."
101
+
desc: "Only optional"
86
102
# if a given remote host exists in the Registry, is accessible, and its Deployer version is identical to the version of the running Deployer,
87
103
# the requirement will be considered satisfied
88
104
- type: remote_accessible_and_ready
@@ -99,7 +115,7 @@ There are 7 action categories:
99
115
6. Actions of synchronization build folders - from current to remote host `sync_to_remote` and vice versa `sync_from_remote`
100
116
7. `interrupt` (when a user needs to perform some actions by hand before continue a pipeline)
101
117
102
-
The concept of a custom command, a command for the terminal shell, is fundamental. The `custom`, `observe`, and the three main categories of Actions contain one or more custom commands inside.
118
+
The concept of a custom command, a command for the terminal shell, is fundamental. The `custom`, `observe`, and the three main categories of actions contain one or more custom commands inside.
103
119
104
120
#### 1.1. Custom command
105
121
@@ -268,7 +284,7 @@ When a patch is applied, Deployer displays the number of times it has been appli
268
284
269
285
#### 1.4. Actions of synchronization run folders - from current to remote host `sync_to_remote` and vice versa `sync_from_remote`
270
286
271
-
Sometimes you need to synchronize build files between remote hosts and the current host. For example, when some actions must be performed on one host, and some on another. To do this, you can use the built-in Actions `sync_to_remote` and `sync_from_remote`.
287
+
Sometimes you need to synchronize build files between remote hosts and the current host. For example, when some actions must be performed on one host, and some on another. To do this, you can use the built-in actions `sync_to_remote` and `sync_from_remote`.
272
288
273
289
#### 1.5. Other actions - `interrupt`, `observe` and `test`
274
290
@@ -344,9 +360,9 @@ Building and execution occur as follows:
344
360
5. Deployer on the host machine runs Deployer in the container and performs complete pipeline execution.
345
361
346
362
> [!NOTE]
347
-
> When building in containers, Deployer does not support Actions `interrupt`, `observe`, `add_to_storage` and `use_from_storage`, and when running - Actions `add_to_storage` and `use_from_storage`.
363
+
> When building in containers, Deployer does not support actions `interrupt`, `observe`, `add_to_storage` and `use_from_storage`, and when running - actions `add_to_storage` and `use_from_storage`.
348
364
>
349
-
> To solve problems of synchronizing files or performing I/O operations, you can use a pipeline with containerized build options inside another pipeline, which can then use the Actions you need.
365
+
> To solve problems of synchronizing files or performing I/O operations, you can use a pipeline with containerized build options inside another pipeline, which can then use the actions you need.
350
366
351
367
> [!NOTE]
352
368
> To prevent building Deployer before your project, switch to `shell` pipeline driver.
Copy file name to clipboardExpand all lines: MIGRATIONS.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Migrations will be applied automatically.
20
20
21
21
## From `1.4.1` to `1.4.2`
22
22
23
-
1. Manually check all your `add_to_storage`Actions (`AutoVersionExtractFromRule`): them now look like this:
23
+
1. Manually check all your `add_to_storage`actions (`AutoVersionExtractFromRule`): them now look like this:
24
24
25
25
```json
26
26
[
@@ -57,10 +57,10 @@ Formally, you should now specify `type` field of `auto_version_rule` object.
57
57
58
58
Migrations will be almost fully applied automatically on configuration save. Deployer will be able to work with old configuration formats (`"version": 2`).
59
59
60
-
1. All Actions will be typed internally with `type` field and `snake_case` (example: `{ "type": "build", ... }`).
60
+
1. All actions will be typed internally with `type` field and `snake_case` (example: `{ "type": "build", ... }`).
61
61
2.`deploy-config.json` and `deploy-global.json` will be upgraded to `"version": 3`.
62
62
3. Variables, requirements, placements and other structs are changed, see the documentation.
63
-
4. Check Action will become Test, original Test will be migrated into PostBuild.
63
+
4. Check action will become Test, original Test will be migrated into PostBuild.
64
64
65
65
### Need manual changes:
66
66
@@ -74,5 +74,5 @@ Migrations will be almost fully applied automatically on configuration save. Dep
74
74
## From `<=1.2.1` to `1.3.0`
75
75
76
76
1. Edit `deploy-config.json` and rename `inplace_artifacts_into_project_root` to `place_artifacts_into_project_root`.
77
-
2. Remove `tags` field inside your deploy-like and `Observe`Actions.
77
+
2. Remove `tags` field inside your deploy-like and `Observe`actions.
78
78
3.`deploy-config.json` and `deploy-global.json` will be upgraded to `"version": 2`.
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ actions:
96
96
used: upx@0.1.0
97
97
```
98
98
99
-
Note that you can change the inner content of Actions inside Pipelines, and also can change the inner content of Pipelines and their Actions if these Pipelines assigned to your project. The changes will not affect Actions and Pipelines from Deployer's Registries.
99
+
Note that you can change the inner content of actions inside Pipelines, and also can change the inner content of Pipelines and their actions if these Pipelines assigned to your project. The changes will not affect actions and Pipelines from Deployer's Registries.
100
100
101
101
You can view your actions and pipelines and get it in YAML by simple commands:
102
102
@@ -108,7 +108,7 @@ depl cat action upx@0.1.0
108
108
depl cat pipeline pack@0.1.0
109
109
```
110
110
111
-
And, of course, load Actions and Pipelines from YAML files by:
111
+
And, of course, load actions and Pipelines from YAML files by:
112
112
113
113
```bash
114
114
depl new action -f {your config}
@@ -122,7 +122,7 @@ depl init
122
122
depl edit .
123
123
```
124
124
125
-
You should add some actions and specify project variables that you'll use. For our example, add simple variable with `target/release/my-app` value. Also add `cargo-release@0.1.0` and `upx@0.1.0` actions from Actions Registry. And not forget to add `Cargo.lock` file and `target` folder to cache files to prevent syncing project folder cache with run folder cache (without specifying this; see `depl run --help` for more).
125
+
You should add some actions and specify project variables that you'll use. For our example, add simple variable with `target/release/my-app` value. Also add `cargo-release@0.1.0` and `upx@0.1.0` actions from actions Registry. And not forget to add `Cargo.lock` file and `target` folder to cache files to prevent syncing project folder cache with run folder cache (without specifying this; see `depl run --help` for more).
126
126
127
127
After all you will get this `.depl/config.yaml`:
128
128
@@ -199,7 +199,7 @@ depl run -fc
199
199
# or explicitly specify the project pipeline's short name - `build-and-compress`
200
200
depl run pack
201
201
202
-
# create pipeline with `Observe` Action and start development server with auto-rebuild
202
+
# create pipeline with `Observe` action and start development server with auto-rebuild
0 commit comments