nixos/.gitlab-ci.yml

13 lines
468 B
YAML
Raw Normal View History

2023-08-25 02:34:42 +02:00
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
2023-08-25 02:29:10 +02:00
Update Flake.nix:
image: nixos/nix:latest
script:
- git config user.email "snowflake@caspervk.net"
- git config user.name "snowflake"
2023-08-25 02:34:42 +02:00
- nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update --commit-lock-file
2023-08-25 02:29:10 +02:00
- git remote add origin https://oauth2:$ACCESS_TOKEN@gitlab.com/$CI_PROJECT_PATH_SLUG
- git push origin HEAD:$CI_COMMIT_BRANCH