Tobias Diekershoff bc3c53c327
All checks were successful
continuous-integration/drone/push Build is passing
ran poetry lock
2025-04-28 11:15:36 +02:00
2022-05-16 14:04:05 +02:00
2022-03-04 10:23:58 +01:00
2022-05-16 14:04:05 +02:00
2022-03-03 17:29:54 +01:00
2022-05-16 14:04:05 +02:00
2022-03-04 16:06:44 +01:00
2022-05-16 14:04:05 +02:00
2025-04-28 11:15:36 +02:00
2022-05-16 14:04:05 +02:00
2022-05-16 14:04:05 +02:00
2022-05-16 14:07:45 +02:00
2022-07-18 15:52:33 +02:00
2022-05-16 14:04:05 +02:00

Container Utilities

Build Status Coverage Code style: black REUSE status

The goal of this CLI tool is to simplify the regular analysis and maintenance of container deployments with Gitea and Drone.

Usage

There are two environment variables that you need to set in order to ensure proper operation of the tool. These are DRONE_TOKEN and GITEA_TOKEN. If you use direnv, simply create a file called .envrc in the repository with the following content:

export DRONE_TOKEN=***
export GITEA_TOKEN=***

Next, install the module and its dependencies by running poetry install. You can then access the command cu by running poetry run cu. If you do that you are presented with a help page that looks like this:

Usage: cu [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  analyse
  rebuild

Analysis

The analyse subcommand can be used as follows:

Usage: cu analyse [OPTIONS]

Options:
  -t, --topic TEXT  Specify topics (e.g. -t 'cont1-noris' -t cont2-noris)
                    [default: docker]
  --help            Show this message and exit.

Rebuilding

The rebuild subcommand can be used as follows:

Usage: cu rebuild [OPTIONS]

Options:
  -a, --all-repos
  -s, --slug TEXT    Specify repository slug (e.g. 'linus/dotfiles').
  -b, --branch TEXT  Specify repository target branch.  [default: default
                     branch of repository]
  -e, --event TEXT   Specify the event.  [default: push]
  -y, --no-confirm   Don't ask for confirmation.
  --help             Show this message and exit.
Description
A Python-based CLI to analyze and maintain our containerised deployments.
Readme 552 KiB
Languages
Python 100%