No description
Find a file
2024-01-18 19:05:33 -08:00
.gitignore initial commit 2024-01-18 19:04:14 -08:00
flake.lock initial commit 2024-01-18 19:04:14 -08:00
flake.nix add attic 2024-01-18 19:05:33 -08:00
README.md initial commit 2024-01-18 19:04:14 -08:00

nix builder

A custom buider for forgejo, trying to use nix instead of actions idioms wherever possible. The provide nix flake builds the docker container.

example config

This is the workflow I use and seems to work well.

name: build
on: [push]
jobs:
  check:
    runs-on: nix
    steps:
      - name: clone
        run: git clone https://username:${{secrets.TOKEN}}@git.celery.eu.org/username/repo .
      - name: cache login
        run: attic login central ${{vars.ATTIC_URL}} ${{secrets.ATTIC_TOKEN}}
      - name: cache setup
        run: attic use actions
      - name: build
        run: nix build
      - name: cache push
        run: attic push actions result