Plumb together different CI/CD services
Project description
Typer Template
Installation
pip install ci-plumber --extra-index-url https://__token__:<your_personal_token>@git.cardiff.ac.uk/api/v4/projects/5484/packages/pypi/simple
Requirements
oc
CLI toolaz
CLI tool
Usage
GitLab
# Initialise the project
ci-plumber gitlab init
OpenShift
# Deploy from the current docker registry to OpenShift
ci-plumber openshift deploy
# Create a new DB and store the credentials in maria.env
ci-plumber openshift create-db
Azure
# Log in to Azure
ci-plumber azure login
# List your Azure subscriptions
ci-plumber azure list-subscriptions
# Set the subscription to use
ci-plumber azure set-default-subscription
# Create a docker registry
ci-plumber azure create-registry
# Trigger a build and push
git add .
git commit -m "Added Azure CI file"
git tag -a v1.0.0 -m "Version 1.0.0"
git push --follow-tags
# Deploy to Azure
ci-plumber azure create-app
# Create a database and store the credentials in maria.env
ci-plumber azure create-db
Developing
Installation
# Install dependencies
$ poetry install
$ poetry shell
# Install git hooks
$ pre-commit install
$ pre-commit autoupdate
$ pre-commit run --all-files
Features
- Runs checks on commit
- Flake8
- Black
- pre-commit-hooks checks
- mypy
- isort
- Installable as a script
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ci-plumber-1.1.0.tar.gz
(16.5 kB
view hashes)
Built Distribution
ci_plumber-1.1.0-py3-none-any.whl
(23.1 kB
view hashes)
Close
Hashes for ci_plumber-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6881cff5f11fd4de9c75e4fa9fd50c34af9e0e046fe18ca622e1cd8e21d4a615 |
|
MD5 | eb291be137c34d0b0eea5428af1ae8b9 |
|
BLAKE2b-256 | 3365123bf5486f6d0aab122e0b6ae533309c649184d26b82b0f3c0b98b607fb3 |