Python SDK to interact with docker registries
Project description
CX Releaser
Package to interact with docker registries
To interact with AWS registry we should export credentials as:
Examples:
export AWS_ACCESS_KEY_ID=my_access_id
export AWS_SECRET_ACCESS_KEY=my_secrte_key
- 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cx_releaser-0.16.0.tar.gz.
File metadata
- Download URL: cx_releaser-0.16.0.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d313a0b9fa23576fc78cc0a6f45befd953452c64edaaffd1d7070bfdde742175
|
|
| MD5 |
530dc3297a815a7c237c0596006b460c
|
|
| BLAKE2b-256 |
d17054584b13a3f610bc454fba4371d6ec5fb475156fa20fa00a56244b7af068
|
File details
Details for the file cx_releaser-0.16.0-py3-none-any.whl.
File metadata
- Download URL: cx_releaser-0.16.0-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f6e0fe089169e6a371dad6c1ddd31a4aebd9df20948260fd06f2b629ed4abc7
|
|
| MD5 |
caaa8b53daeb0e3d93aaceafab4e4f90
|
|
| BLAKE2b-256 |
91187ebb1a6565f22542cfa10937942afe05945b07048c33e9c593c531344939
|