local-ci

command module
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 4 Imported by: 0

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
  • Configuration using YAML format
  • Environment variable support
  • Working directory customization
  • Automatic file copying with .gitignore support
  • Real-time log streaming from containers
  • Automatic container cleanup

Installation

Prerequisites
  1. Go 1.21 or later

    • Visit Go Downloads page
    • Download and install the latest version for your operating system
    • Verify installation with go version
  2. 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

To check the installation

local-ci --version

Quick Start

  1. Start Docker

  2. Create a .local-ci.yaml file in your project root:

stages:
  - test

variables:
   BAR: BAZ

Test:
  stage: test
  image: alpine
  variables:
    FOO: BAR
  script:
    - echo "Hello World"
    - echo $FOO
    - echo $BAR
  1. Run the pipeline:
local-ci run

Documentation

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL