nix-crx/.gitlab-ci.yml

14 lines
531 B
YAML
Raw Normal View History

2022-01-31 01:43:36 +02:00
update:
script:
2022-01-31 01:44:25 +02:00
- nix shell github:NixOS/nixpkgs/nixos-unstable#python3 -c python3 update.py
2022-01-31 01:43:36 +02:00
- git add .
2022-01-31 01:47:52 +02:00
- git config user.email "ci@privatevoid.net"
- git config user.name "CI"
2022-01-31 02:04:55 +02:00
- git branch -D master || true
2022-01-31 02:04:04 +02:00
- git checkout -b master
2022-01-31 01:43:36 +02:00
- git commit -m '[CI] Update extensions' || exit 0
2022-01-31 01:55:03 +02:00
- git remote add pushback gitlab@git.privatevoid.net:max/nix-crx.git || true
2022-01-31 01:59:16 +02:00
- chmod 400 $PUSHBACK_KEY
2022-01-31 02:04:04 +02:00
- GIT_SSH_COMMAND="ssh -i $PUSHBACK_KEY" git push pushback master
2022-01-31 02:04:55 +02:00
- git branch -D master || true