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 | Additional arguments to pass to the command |
| ADMIN | Run the command as an admin |
| QUERY | The JMESPATH query to run on the output of the command |
| OUTPUT | The output format (yaml, json) |
| WAIT | Tells duploctl to wait until a process has completed before continuing |
| OUTPUT_FILE | Write the output to a file |
| LOG_LEVEL | Log verbosity for the duploctl client (DEBUG, INFO, WARN, ERROR). Default: WARN |
To make an update to a service you will need a duplo token.
Content type
Image
Digest
sha256:bcbd5cfaa…
Size
54.4 MB
Last updated
6 months ago
docker pull duplocloud/pipe