nix-builder/README.md

28 lines
689 B
Markdown
Raw Permalink Normal View History

2024-01-19 03:04:14 +00: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.
```yaml
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
```