opencicd is a utility that enables the following:
- Projects can specify their technology needs
- A standard interface decoupling projects from ci/cd platforms
- Allowing users to run ci/cd commands locally the same as on the server.
- Simplifying ci/cd orchestration, using docker for everything
- Auto-discovery of ci/cd commands allowing project templates to be a-la-carte
To Install:
-
Prerequisites: opencicd was developed using Python 3.12, so check that your local python is >= 3.12
-
Type in your cli:
pip install "git+https://github.com/Comcast/OpenCICD.git@main#egg=opencicd"
To install from source, download the source and from that directory
pip install .
For info on command line options:
For info on Action files options:
to create a release:
- As needed update the version in pyproject.toml
- In this folder, run "python -m build"
- NOTE: If you run into an error "No module named build.main", first run "python -m pip install build" and try again
- Commit and push these changes to git before the next step
- Manually Upload the resulting files in "dist" to a new Release in github
After updating run:
opencicd --version
If it shows the current version, opencicd is installed correctly.
If you run into not being able to run "opencicd" after installing, the pip install location may not be in your path.
-
Get the bin path:
- During install, pip will tell you where it is install to, for example:
It may install to:
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages - Now remove "lib" and everything after it and replace it with bin:
/Library/Frameworks/Python.framework/Versions/3.11/bin
- During install, pip will tell you where it is install to, for example:
It may install to:
-
This path needs to be added to your path
using your favorite editor, open
~/.zshrcor~/.bash_profiledepending on which shell you usenano ~/.bash_profileWe need to add the following line at the end: (Make sure to replace the path used)
export PATH='$PATH:/Library/Frameworks/Python.framework/Versions/3.11/bin'Use your system dialog to add a new path for where it installed