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!)
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:
makeThe examples directory provides a list of plans that can be forged into step executions.
./bin/smithron forge --plan examples/simple-plan.yaml --target gitlabhello-world:
image:
entrypoint:
- echo
- Hello, World!
name: docker.io/busybox:latest
variables:
GREETING: Hello./bin/smithron forge --plan examples/simple-plan.yaml --target githubname: hello-world
runs:
using: docker
image: docker.io/busybox:latest
entrypoint: echo
args:
- Hello, World!
env:
GREETING: Hello./bin/smithron forge --plan examples/simple-plan.yaml --target tektonapiVersion: 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./bin/smithron forge --plan examples/simple-plan.yaml --target argo-workflowsapiVersion: 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: {}