implement post build hook
Some checks failed
/ perform flake analysis (push) Successful in 37s
/ build hive configuration (push) Failing after 18s

This commit is contained in:
2026-01-07 19:20:44 +01:00
parent 228ac9214c
commit 9bb345c061
2 changed files with 13 additions and 0 deletions

View File

@@ -16,6 +16,8 @@ jobs:
extra_nix_config: |
extra-trusted-public-keys = localhost:TiRpr2LzamX/MCKBUmFlZ8inWz94QWGL88fMEHg9Kgc=
extra-substituters = http://localhost:5000
secret-key-files = /var/secrets/cache_privkey
post-build-hook = /etc/nix/upload-to-cache.sh
- uses: actions/checkout@v4
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
@@ -25,4 +27,8 @@ jobs:
- uses: http://github.com/cachix/cachix-action@v16
with:
name: colmena
- run: mkdir -p /var/secrets/
- run: echo ${{ secrets.CACHE_PRIVKEY }} > /var/secrets/cache_privkey
- run: cp ./scripts/upload-to-cache.sh /etc/nix/
- run: chmod +x /etc/nix/upload-to-cache.sh
- run: nix run .#colmena apply