Sign inSign up

technosophos/trello-cli

By technosophos

•Updated over 8 years ago

Run Trello CLI commands in a container

Image
0

293

technosophos/trello-cli repository overview

⁠trello-cli Dockerfile

This is a Dockerfile for the trello-cli⁠ commandline client for Trello⁠.

⁠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⁠.

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⁠, it looks like this:

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());
  });

});

Tag summary

Content type

Image

Digest

Size

262.7 MB

Last updated

over 8 years ago

docker pull technosophos/trello-cli