Skip to content

darrkenn/cythe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cythe

A lightweight CI program that uses docker to test and build your applications.

Config

All configuration is located at /etc/cythe.

Configure which repositories cythe will track in /etc/cythe/repos.toml.

[[repo]]
name = "darrkenn/cythe"
tracked_branch = "main"
url = "https://github.com/darrkenn/cythe"

# Optionally add secrets
[repo.secrets]
SECRET = "im secret"

[[repo]]
name = "darrkenn/cythe-test"
tracked_branch = "main"
url = "https://github.com/darrkenn/cythe-test"

Place all repository secrets at /etc/cythe/secrets with this structure.

darrkenn/ # Organisation name
cythe.secret # Repository name
cythe-test.secret # Repository name

Configure cythe's runtime options at /etc/cythe/config.toml.

# Whether or not to cache container images between runs
cache_images = true

# Maximum number of concurrent runners
# Max is 255 but 4 is recommended
max_active_runners = 4

# Logging level
# Options: "error", "warn", "info", "trace"
log_level = "info"

# Whether or not to continue executing steps if one fails
continue_on_fail = false

# Telefy is a library for sending logging messages to Telegram.
[telefy]
enabled = true 
token = "TOKEN" 
chat_id = "CHAT_ID"

cythe.yml example

# Which docker image to run
image: darrkenn/cythe-rust:latest
steps:
    # Steps are defined with a name and either a use or run command
    - name: Checkout repo
      # Use commands are built-in to cythe
      # This one clones the repo into the current folder
      use: cythe-checkout

    - name: Run tests
      # Run commands are commands that will be run in the containers shell.
      run: cargo test -q

    - name: Publish crate
      # Secrets are defined in repos.toml and can be accessed with this syntax: ${NAME}
      run: cargo publish --token ${CRATES_IO_TOKEN}

About

A lightweight CI/CD platform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published