Skip to main content

A collection of utilities to manage ICHEC project CI/CD pipelines.

Project description

iccicd

This project is a collection of utilities for managing CI/CD pipelines at ICHEC.

It provides opinionated interfaces to encourage standarization of our project structures and workflows.

Install

The package is available from PyPI:

pip install iccicd

Features

Deploy a Package to a Repository

From the package's top-level directory:

iccicd deploy --token $REPO_TOKEN

As an example, for a Python project this might be the PyPI repository's token.

Set a Package's Version Number

From the package's top-level directory:

iccicd set_version $VERSION

Increment a Repository's Tag

From the repository's top-level directory, and on the branch the tag will be dervied from:

iccicd increment_tag --field patch

Here semver tag versioning is assumed with a major.minor.patch scheme. Note: in a CI/CD pipeline some more input options are needed to initialize the git repo for pushing the tag to. You can use the --help flag for more details.

Sync Content With an External Upstream

Here we pull content from an external upstream repository and use it to update the content in a local repo. This can be useful for public mirrors that include a subset of the content in an internal repo.

iccicd sync_external_archive \
    --source_token $SOURCE_TOKEN \ 
    --project_id $SOURCE_PROJ_ID \
    --sync_script $MY_SYNC_SCRIPT \
    --asset_name $ASSET_NAME \
    --archive_name $ARCHIVE_NAME \
    --target_token $TARGET_TOKEN

The inputs are:

  • SOURCE_TOKEN: Gitlab access token for the source (private) repo - must have asset download rights
  • SOURCE_PROJ_ID: The numeric project ID for the source repo
  • MY_SYNC_SCRIPT: Path to a script that will use the extracted contents of the source archive to update the target repo
  • ASSET_NAME: Name of the asset corresponding to the archive in the source repo's latest release collection
  • ARCHIVE_NAME: Name of the downloaded file corresponding to the archive - this can differ from the asset name.
  • TARGET_TOKEN: OATH token for the target repo - so that it can be pushed to from a CI runner

Licensing

This project is licensed under the GPLv3+. See the accompanying LICENSE.txt file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iccicd-0.1.1.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iccicd-0.1.1-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file iccicd-0.1.1.tar.gz.

File metadata

  • Download URL: iccicd-0.1.1.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for iccicd-0.1.1.tar.gz
Algorithm Hash digest
SHA256 749c4e89bbfa912238a6e727b3e6688dd7ee7d5ea509bda6f2417db80c99071a
MD5 8a83252cb6a167d5c10f7e99c2f5fdf4
BLAKE2b-256 4f9715bc427a219e96002510bff6b8294e61924e850967f852971e48e004f230

See more details on using hashes here.

File details

Details for the file iccicd-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: iccicd-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for iccicd-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fed7e08a03e50d5a3248b3fc88ae86bf9233d48839791cf4104ccfbc6fd1199e
MD5 7a4a3470c507ab39df51f7e2e1b34417
BLAKE2b-256 76f0f7a83cdc82cf7b345f4bfd1d9980a4ccef1bea6d8d2d7acda695f124a5ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page