Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kferrone committed Aug 30, 2024
1 parent 920c86b commit 46800f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ A bitbucket wrapper for the [duploctl](https://github.com/duplocloud/duploctl).
## YAML Definition

```yaml
- pipe: &duploctl docker://duplocloud/duploctl-pipe:1.0.0
- pipe: &duplo docker://duplocloud/pipe:1.0.0
variables: &duplovars
TOKEN: <string>
HOST: <string>
TENANT: <string>
KIND: service
NAME: my-app
CMD: update_image
ARGS: registry.com/my-app:latest
- pipe: *duploctl
ARGS: registry.com/my-app:${BITBUCKET_TAG}
WAIT: 'true' # waits for deploy to finish
- pipe: *duplo
variables:
<<: *duplovars
KIND: lambda
Expand All @@ -34,6 +35,9 @@ A bitbucket wrapper for the [duploctl](https://github.com/duplocloud/duploctl).
| NAME | The name of the service |
| CMD | The command to run on the service |
| ARGS | The arguments to the command |
| QUERY | The [JMESPATH](https://jmespath.org/) query to run on the output of the command |
| OUTPUT | The output of the command, json, yaml, string |
| WAIT | Tells duploctl to wait until a process has completed before continuing |

## Prerequisites

Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ services:
HOST: $DUPLO_HOST
TOKEN: $DUPLO_TOKEN
TENANT: $DUPLO_TENANT
KIND: tenant
CMD: list
QUERY: '[].AccountName'

0 comments on commit 46800f2

Please sign in to comment.