https://github.com/technosophos/trello-cli
Dockerizer for Trello CLI
https://github.com/technosophos/trello-cli
brigade docker-image kubernetes trello
Last synced: about 2 months ago
JSON representation
Dockerizer for Trello CLI
- Host: GitHub
- URL: https://github.com/technosophos/trello-cli
- Owner: technosophos
- License: other
- Created: 2018-02-09T04:54:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-09T05:41:35.000Z (over 8 years ago)
- Last Synced: 2025-02-14T23:47:28.379Z (over 1 year ago)
- Topics: brigade, docker-image, kubernetes, trello
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# trello-cli Dockerfile
This is a Dockerfile for the [trello-cli](https://github.com/mheap/trello-cli)
commandline client for [Trello](https://trello.com/).
## Building
To build this:
```
make docker-build
```
To push to a registry:
```
make docker-push
```
## Configuration
You will need to setup your API keys to access your Trello boards. To get your
keys, head [over here](https://trello.com/app-key).
The easest way to configure credentials is to set the environment variable `$APIKEY`
to the API Key Trello gives you, then generate a token and add it as the env
var `$TOKEN`.
From there run `env2creds` in the container to generate the credentials.
_You are strongly encouraged to run `trello refresh` before doing anything_
In [brigade](http://brigade.sh), it looks like this:
```javascript
const { events, Job } = require("brigadier");
events.on("exec", (e, p) => {
trello = new Job("trello", "technosophos/trello-cli:latest")
trello.env = {
APIKEY: p.secrets.TRELLO_APIKEY,
TOKEN: p.secrets.TRELLO_TOKEN
}
trello.tasks = [
"env2creds",
"trello refresh",
"trello show-boards -i"
];
trello.run().then( res => {
console.log(res.toString());
});
});
```