Skip to content

lcarva/smithron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smithron

The CI-forging tool.

Smithron forges "step executions" to various CI providers from a common plan. If you have a tool packaged as a container image and want to provide native integrations with GitHub Actions, GitLab CI, and Tekton Pipelines, Smithron is for you.

(This project is still experimental. Feedback is highly welcome!)

Install

Currently, a binary is not yet provided to run Smithron. You must build it from source. The simplest way to do so is by simply using the build (default) target of the Makefile:

make

Example Usage

The examples directory provides a list of plans that can be forged into step executions.

GitLab

./bin/smithron forge --plan examples/simple-plan.yaml --target gitlab
hello-world:
  image:
    entrypoint:
    - echo
    - Hello, World!
    name: docker.io/busybox:latest
  variables:
    GREETING: Hello

GitHub

./bin/smithron forge --plan examples/simple-plan.yaml --target github
name: hello-world
runs:
  using: docker
  image: docker.io/busybox:latest
  entrypoint: echo
  args:
  - Hello, World!
  env:
    GREETING: Hello

Tekton

./bin/smithron forge --plan examples/simple-plan.yaml --target tekton
apiVersion: tekton.dev/v1
kind: Task
metadata:
  creationTimestamp: null
  name: hello-world
spec:
  steps:
  - command:
    - echo
    - Hello, World!
    computeResources: {}
    env:
    - name: GREETING
      value: Hello
    image: docker.io/busybox:latest
    name: run

Argo Workflows

./bin/smithron forge --plan examples/simple-plan.yaml --target argo-workflows
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
  creationTimestamp: null
  name: hello-world
spec:
  arguments: {}
  templates:
  - container:
      command:
      - echo
      - Hello, World!
      env:
      - name: GREETING
        value: Hello
      image: docker.io/busybox:latest
      name: ""
      resources: {}
    inputs: {}
    metadata: {}
    name: run
    outputs: {}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •