Skip to content
Snippets Groups Projects

Fixing the Flake Update Job

+ 1
4
@@ -6,10 +6,7 @@ nix-flake-update:
- git config user.email "ci@runner"
- git config user.name "ci-runner-nix-flake-update"
- nix flake update --commit-lock-file
# we have an access token in $NIX_FLAKE_UPDATE_TOKEN
# our remote is thus "https://gitlab-ci:$NIX_FLAKE_UPDATE_TOKEN@${CI_REPOSITORY_URL#*@}"
- git remote set-url origin "https://gitlab-ci:$NIX_FLAKE_UPDATE_TOKEN@${CI_REPOSITORY_URL#*@}"
- git push origin HEAD:$CI_COMMIT_BRANCH
- git push "https://gitlab-ci:${NIX_FLAKE_UPDATE_TOKEN}@git.cs.uni-paderborn.de/rbfsmi/nixos.git" HEAD:$CI_COMMIT_BRANCH
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
tags:
Loading