Frequently clean runner nix store

This commit is contained in:
Ciapa 2023-04-22 08:46:30 +00:00
parent 41d754202d
commit c6c2ed6986
1 changed files with 8 additions and 1 deletions

View File

@ -8,6 +8,7 @@ variables:
stages:
- test
- deploy
- scheduled
before_script:
- mv .gitlab/passwd /etc/passwd
@ -44,7 +45,7 @@ deploy:
check updates:
stage: test
stage: scheduled
script:
# Prepare git access
- nix-env -iA nixos.openssh
@ -65,3 +66,9 @@ check updates:
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
clean nix store:
stage: scheduled
script:
- nix-collect-garbage --delete-older-than 14d
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"