Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/duplocloud/duploctl-pipe
Bitbucket Pipe wrapper for duploctl.
https://github.com/duplocloud/duploctl-pipe
Last synced: 4 days ago
JSON representation
Bitbucket Pipe wrapper for duploctl.
- Host: GitHub
- URL: https://github.com/duplocloud/duploctl-pipe
- Owner: duplocloud
- License: other
- Created: 2023-12-05T23:07:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-30T18:24:41.000Z (4 months ago)
- Last Synced: 2024-11-10T02:09:35.273Z (2 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Bitbucket Pipe for Duploctl
A bitbucket wrapper for the [duploctl](https://github.com/duplocloud/duploctl). Implements the bitbucket pipe tools and the duploctl as python libraries to give a nice and integrated kinda feel to it.
## YAML Definition
```yaml
- pipe: &duplo docker://duplocloud/pipe:latest
variables: &duplovars
TOKEN:
HOST:
TENANT:
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```
## Variables
| 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](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
To make an update to a service you will need a duplo token.
## References
- [This Repo](https://bitbucket.org/duplocloud/duploctl-pipe/src/main/)
- [Bitbucket Pipe Advanced Techniques](https://support.atlassian.com/bitbucket-cloud/docs/advanced-techniques-for-writing-pipes/)
- [Bitbucket Pipe Tools](https://bitbucket.org/bitbucketpipelines/bitbucket-pipes-toolkit/src/master/)