Discover Packages
github.com/MrPuls/local-ci
command
module
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Feb 5, 2025
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Local CI
Local CI is a tool that allows you to run CI/CD pipelines locally using Docker containers. It helps developers test and debug their CI pipelines without pushing to remote repositories.
Features
Run CI pipeline jobs locally using Docker
YAML configuration similar to GitLab CI
Environment variable support
Working directory customization
Automatic file copying with .gitignore support
Real-time log streaming from containers
Automatic container cleanup
Installation
Prerequisites
Go 1.21 or later
Visit Go Downloads page
Download and install the latest version for your operating system
Verify installation with go version
Docker
Must be installed and running
Your user must have permissions to access the Docker daemon
Verify installation with docker --version
Installing
go install github.com/MrPuls/local-ci@latest
Quick Start
Start Docker
Create a .local-ci.yaml file in your project root:
stages:
- test
Test:
stage: test
image: alpine
variables:
FOO: BAR
script:
- echo "Hello World"
- echo $FOO
Run the pipeline:
local-ci run
Documentation
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
cmd
Click to show internal directories.
Click to hide internal directories.