-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,48 @@ | ||
# Ploy | ||
### A simplified deployment and task automation tool. | ||
|
||
**Usage**: `ploy [command] [options]` | ||
|
||
**Commands**: | ||
- `ploy init` - Initialize a new template ploy script. | ||
- `ploy run [options] [pipeline]...` - Run pipelines on their respective servers (provide -l to run them locally). | ||
|
||
**Configuration structure**: | ||
```json | ||
{ | ||
"params": { | ||
// Parameters to be populated within tasks | ||
// Keys are the parameter names, values are the parameter values | ||
"message": "hello, world!" | ||
}, | ||
"servers": { | ||
// Servers to be used in pipelines | ||
// Keys are the server names, values are the server configurations | ||
"staging": { | ||
"host": "111.111.111.111", | ||
"port": 22, | ||
"user": "ploy", | ||
"private-key": "/home/user/.ssh/id_rsa" | ||
} | ||
}, | ||
"tasks": { | ||
// Tasks to be used in pipelines | ||
// Keys are the task names, values are the task commands | ||
"print-message": [ | ||
"echo '{{message}}'" | ||
] | ||
}, | ||
"pipelines": { | ||
// Pipelines to be run | ||
// Keys are the pipeline names, values are the pipeline configurations | ||
"say-hello": { | ||
"servers": [ | ||
"staging" | ||
], | ||
"tasks": [ | ||
"print-message" | ||
] | ||
} | ||
} | ||
} | ||
``` |