Reusable GitHub Actions composite actions for tinyland-inc CI/CD.
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: mainRun 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 }}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 buildTruffleHog (verified secrets) + Gitleaks detection.
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: tinyland-inc/ci-templates/.github/actions/secrets-scan@main- Self-hosted runners: Attic and Bazel cache auto-detected via cluster DNS
- GitHub-hosted runners: Pass
attic-serverinput explicitly - Secrets:
ATTIC_TOKENfor cache push operations