Skip to content

tinyland-inc/ci-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

ci-templates

Reusable GitHub Actions composite actions for tinyland-inc CI/CD.

Actions

nix-setup

Configure Nix and cache endpoints. Auto-detects Attic and Bazel on self-hosted ARC runners via cluster DNS.

- uses: tinyland-inc/ci-templates/.github/actions/nix-setup@main
  with:
    attic-cache: "main"  # optional, default: main

nix-build

Run Nix build with Attic binary cache. Installs Nix, configures caches, runs command.

- uses: tinyland-inc/ci-templates/.github/actions/nix-build@main
  with:
    command: "nix build .#package"
    push-cache: "true"
  env:
    ATTIC_TOKEN: ${{ secrets.ATTIC_TOKEN }}

greedy-cache

Start Attic watch-store daemon for concurrent binary cache push. Derivations are pushed as they build, not after.

- uses: tinyland-inc/ci-templates/.github/actions/greedy-cache@main
  with:
    attic-cache: "tinyland-lab"
    watch-jobs: "8"
  env:
    ATTIC_TOKEN: ${{ secrets.ATTIC_TOKEN }}

- run: nix build .#package  # derivations pushed concurrently as they build

secrets-scan

TruffleHog (verified secrets) + Gitleaks detection.

- uses: actions/checkout@v4
  with:
    fetch-depth: 0
- uses: tinyland-inc/ci-templates/.github/actions/secrets-scan@main

Requirements

  • Self-hosted runners: Attic and Bazel cache auto-detected via cluster DNS
  • GitHub-hosted runners: Pass attic-server input explicitly
  • Secrets: ATTIC_TOKEN for cache push operations

About

Reusable GitHub Actions composite actions for Nix, Attic cache, and CI/CD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors