Skip to main content

# ci3

Continuous deployment for kubernetes (k8s) and gitlab.

# Table of Contents 1. [blog](#blog) 2. [use](#use) 3. [develop](#develop)

## blog

More articles on [Medium..](https://medium.com/kubic-ci)

## use

Prerequisites: ci3 is written and tested in python3 (linux or mac osx).

As a user you would probably do something like:

pip install kubic-ci

The following should work w/o errors:

kubic –help

To start a new project locally you would proceed with:

kubic init

A typical deploy cycle is:

kubic build && kubic push && kubic deploy -d hello

where hello is the name of your service and project.

### docker image

One can find a simple docker image inside the docker folder, which is suitable to be used by gitlab-runner, so that one has already ci3 preinstalled and can deploy to GKE.

The following will pull latest image from dockerhub and run it in your local docker

docker run -it kubic3/ci3:latest

Like this kubic-ci can be integrated into CI/CD cycle provided by [gitlab](https://docs.gitlab.com/ee/ci/yaml/).

## develop

### release

Before making a new release:

  1. Make sure tests are passing (both locally and remotely on gitlab CI).

  2. Increment version according to [semantic versioning](https://semver.org/).

In addition to bumping a new version in ci3/version.py, issuing a new release includes few more publishing (post-release) activities:

  1. Publish new python package python setup.py sdist upload

  2. Build ad upload a new docker image (to avoid confusions, both docker image and python package share the same version). Check how it has been picked up on [dockerhub](https://hub.docker.com/r/kubic3/ci3/) and [microbadger](https://microbadger.com/images/kubic3/ci3).

  3. Say something on socials about it ;)

Metadata

Release files for kubic-ci 0.4.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kubic-ci 0.4.6
File Size Uploaded Provenance
kubic-ci-0.4.6.tar.gz 11.7 kB Without provenance Details

Release files / kubic-ci-0.4.6.tar.gz

Download URL kubic-ci-0.4.6.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fd9015a031e8197b8ea32c5fcce2dde0d49916b2aad238e796e38c3cab9ff6d0
BLAKE2b-256 checksum
How to use checksums
555ee2aeeb7b4a9f1c8420821871bd288638d4a69d53a8d589177f2c6a2d8101
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Security for kubic-ci 0.4.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page