Frequently clean runner nix store
This commit is contained in:
parent
41d754202d
commit
c6c2ed6986
|
@ -8,6 +8,7 @@ variables:
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- deploy
|
- deploy
|
||||||
|
- scheduled
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- mv .gitlab/passwd /etc/passwd
|
- mv .gitlab/passwd /etc/passwd
|
||||||
|
@ -44,7 +45,7 @@ deploy:
|
||||||
|
|
||||||
|
|
||||||
check updates:
|
check updates:
|
||||||
stage: test
|
stage: scheduled
|
||||||
script:
|
script:
|
||||||
# Prepare git access
|
# Prepare git access
|
||||||
- nix-env -iA nixos.openssh
|
- nix-env -iA nixos.openssh
|
||||||
|
@ -65,3 +66,9 @@ check updates:
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_PIPELINE_SOURCE == "schedule"
|
- if: $CI_PIPELINE_SOURCE == "schedule"
|
||||||
|
|
||||||
|
clean nix store:
|
||||||
|
stage: scheduled
|
||||||
|
script:
|
||||||
|
- nix-collect-garbage --delete-older-than 14d
|
||||||
|
rules:
|
||||||
|
- if: $CI_PIPELINE_SOURCE == "schedule"
|
||||||
|
|
Loading…
Reference in New Issue