CI/CD component packaging
cici bundle command
cici bundle
$ cici bundle
⚡ update gitlab:include python-autoflake.yml
⚡ update gitlab:include python-black.yml
⚡ update gitlab:include python-pytest.yml
Flags
| Flag | Description |
|---|---|
-o/--output FORMAT |
Output format to generate (default: gitlab:include). Repeatable. |
-f/--force |
Regenerate all files even if content is unchanged. |
-d/--dry-run |
Show what would be written without writing any files. |
The output format can also be set via the CICI_OUTPUTS environment variable
(comma-separated for multiple formats):
CICI_OUTPUTS=gitlab:include cici bundle
--force and --dry-run are mutually exclusive.
Note
The cici bundle command will be replaced by the cici package command in a future release.
Setup
# .gitlab-ci.yml
include:
- project: saferatday0/cici
file:
- cici-bundle.yml
Run cici update to pin to a stable version.
# .pre-commit-config.yaml
repos:
- repo: https://gitlab.com/saferatday0/cici
rev: ""
hooks:
- id: cici-bundle
Run pre-commit autoupdate to pin to a stable version.