ci: enable experimental flake features
This commit is contained in:
parent
7d34bebaaf
commit
9e16d0ba48
|
@ -1,10 +1,12 @@
|
||||||
|
workflow:
|
||||||
|
rules:
|
||||||
|
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
||||||
|
|
||||||
Update Flake.nix:
|
Update Flake.nix:
|
||||||
image: nixos/nix:latest
|
image: nixos/nix:latest
|
||||||
script:
|
script:
|
||||||
- git config user.email "snowflake@caspervk.net"
|
- git config user.email "snowflake@caspervk.net"
|
||||||
- git config user.name "snowflake"
|
- git config user.name "snowflake"
|
||||||
- nix flake update --commit-lock-file
|
- nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update --commit-lock-file
|
||||||
- git remote add origin https://oauth2:$ACCESS_TOKEN@gitlab.com/$CI_PROJECT_PATH_SLUG
|
- git remote add origin https://oauth2:$ACCESS_TOKEN@gitlab.com/$CI_PROJECT_PATH_SLUG
|
||||||
- git push origin HEAD:$CI_COMMIT_BRANCH
|
- git push origin HEAD:$CI_COMMIT_BRANCH
|
||||||
rules:
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
|
||||||
|
|
Loading…
Reference in a new issue