Skip to content
Snippets Groups Projects
Commit 4a42c0e9 authored by Eli Kogan-Wang's avatar Eli Kogan-Wang
Browse files

asdfasdf

parent 6f357367
No related branches found
No related tags found
No related merge requests found
nix-flake-update:
image: nixos/nix
variables:
GIT_AUTHOR_NAME: "GitLab CI"
GIT_AUTHOR_EMAIL: "gitlab@localhost"
script:
- mkdir -p ~/.config/nix/
- echo "experimental-features = nix-command flakes" > ~/.config/nix/nix.conf
- nix profile install nixpkgs#git
- 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#*@}"
- nix profile install nixpkgs#git
- git remote set-url origin "https://gitlab-ci:$NIX_FLAKE_UPDATE_TOKEN@${CI_REPOSITORY_URL#*@}"
- git push
tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment