Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
davesavic committed Jan 1, 2024
1 parent 9d70de2 commit cf3919f
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions README.md
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"
]
}
}
}
```

0 comments on commit cf3919f

Please sign in to comment.