A bitbucket wrapper for the duploctl. Implements the bitbucket pipe tools and the duploctl as python libraries to give a nice and integrated kinda feel to it.
- pipe: &duplo docker://duplocloud/pipe:latest
variables: &duplovars
TOKEN: <string>
HOST: <string>
TENANT: <string>
KIND: service
NAME: my-app
CMD: update_image
ARGS: registry.com/my-app:${BITBUCKET_TAG}
WAIT: 'true' # waits for deploy to finish
- pipe: *duplo
variables:
<<: *duplovars
KIND: lambda
NAME: my-lambda
ARGS: registry.com/my-lambda:latest
| Variable | Usage |
|---|---|
| TOKEN | Auth token for Duplo |
| HOST | The domain of your Duplo instance |
| TENANT | The tenant where the service is in |
| KIND | The kind of the service (service, lambda) |
| NAME | The name of the service |
| CMD | The command to run on the service |
| ARGS | The arguments to the command |
| QUERY | The JMESPATH 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 |
To make an update to a service you will need a duplo token.