try to push to sourcehut
This commit is contained in:
parent
960526e24f
commit
031a2bfd7d
1 changed files with 14 additions and 1 deletions
|
@ -2,7 +2,20 @@ pipeline:
|
||||||
check:
|
check:
|
||||||
image: nixpkgs/nix-flakes:latest
|
image: nixpkgs/nix-flakes:latest
|
||||||
pull: true
|
pull: true
|
||||||
secrets: [ sourcehut_token ]
|
|
||||||
commands:
|
commands:
|
||||||
- nix --no-sandbox flake info
|
- nix --no-sandbox flake info
|
||||||
- nix --no-sandbox develop -c statix check
|
- nix --no-sandbox develop -c statix check
|
||||||
|
|
||||||
|
push-to-sourcehut:
|
||||||
|
image: nixpkgs/nix-flakes:latest
|
||||||
|
pull: true
|
||||||
|
secrets: [ ssh_public_key ssh_private_key ]
|
||||||
|
commands:
|
||||||
|
- mkdir -p ~/.ssh/
|
||||||
|
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
|
||||||
|
- echo "$SSH_PUBLIC_KEY" > ~/.ssh/id_ed25519.pub
|
||||||
|
- echo "StrictHostKeyChecking=accept-new" >> ~/.ssh/config
|
||||||
|
- chmod 0400 ~/.ssh/ -R
|
||||||
|
- git remote add sourcehut git@git.sr.ht:~cyplo/dotfiles
|
||||||
|
- git push sourcehut --tags --force-with-lease
|
||||||
|
- git push sourcehut --all --force-with-lease
|
||||||
|
|
Loading…
Reference in a new issue