feat: new server to work as a nix cache

This commit is contained in:
silver 2024-05-12 03:47:20 +01:00
parent 6ae584c895
commit 7408873102
Signed by: silver
GPG key ID: 54E2C71918E93B74
30 changed files with 598 additions and 270 deletions

View file

@ -65,12 +65,18 @@ sync_repos:
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
.scripts_cache: &scripts_cache
- nix --extra-experimental-features 'nix-command flakes' profile install nixpkgs#attic-client
- attic login skynet https://nix-cache.skynet.ie/ $CACHE_KEY
- attic use skynet-cache
# every commit on main will build and deploy
.build_template: &builder
tags:
- nix
before_script:
- *scripts_base
- *scripts_cache
rules:
- changes:
- applications/**/*
@ -105,6 +111,7 @@ build:
<<: *builder
stage: test
script:
- attic watch-store skynet-cache &
- colmena build -v --on @active-dns
- colmena build -v --on @active-core
- colmena build -v --on @active