gitlab ci

This commit is contained in:
Casper V. Kristensen 2023-08-25 02:29:10 +02:00
parent d0a8ffa12c
commit 7d34bebaaf

10
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,10 @@
Update Flake.nix:
image: nixos/nix:latest
script:
- git config user.email "snowflake@caspervk.net"
- git config user.name "snowflake"
- nix flake update --commit-lock-file
- git remote add origin https://oauth2:$ACCESS_TOKEN@gitlab.com/$CI_PROJECT_PATH_SLUG
- git push origin HEAD:$CI_COMMIT_BRANCH
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'