689 B
689 B
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