Python SDK to interact with docker registries
Project description
CX Releaser
Package to interact with docker registries
Examples:
- Create new release with recently build image
from cx_releaser.src.release import Release
from cx_releaser.src.docker_registry import AwsRegistry
new_release = Release.from_remote('my_image', AwsRegistry())
new_release.next().push()
- Rollback recently created release
from cx_releaser.src.release import Release
from cx_releaser.src.docker_registry import AwsRegistry
all_releases = Release.get_all_from_remote('my_image', AwsRegistry())
last, prev = all_releases[0], all_releases[1]
last.rollback(prev)
Command line script
After executing
pip install cx_releaser
executable should be available under cx_releaser
Examples: Push:
cx_releaser --all_tenants --config_path my_conf.yml --version 1.0.0 push --equal_tags latest
Rollback
cx_releaser --all_tenants --config_path my_conf.yml --version 1.0.0 rollback --prev_release 0.9.0
Example Config File for --config_path:
aws_envs:
dev:
account_id: '131413450532'
aws_access_key_id: my_access_key
aws_secret_access_key: my_secret
image_name: my_image
check_is_newest_version: true #this will force to push images only with greater versions
check_is_new_hash: true #this will force to push images only with new content (different sha256 hash)
version: 0.0.0-beta
equal_tags: [beta] #this will add tag beta to all release versions
tags_to_move: [beta] #this will move release tag beta during rollback to pointed release
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
cx_releaser-0.6.0.tar.gz
(8.5 kB
view hashes)
Built Distribution
Close
Hashes for cx_releaser-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7ecbff7f47ca6a083e9f058dc69482e0adaf3daae5bcef1b60e873d7a46c963 |
|
MD5 | 56b77c68a2b55d757c5d44d91d245a08 |
|
BLAKE2b-256 | 9cdc7a2ac968a28406277bfd9b02dfb65623048c3365f658d75f78c436fe122e |