minimise test case to check the mounts

This commit is contained in:
Cyryl Płotnicki 2022-11-08 19:23:35 +00:00
parent bfe327b802
commit 2c9efeabf4

View file

@ -8,17 +8,3 @@ pipeline:
volumes:
- /var/lib/woodpecker/cache/nixstore:/nix/store
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
- ls -hal ~/.ssh/
- git remote add sourcehut git@git.sr.ht:~cyplo/dotfiles
- git push sourcehut --tags --force-with-lease
- git push sourcehut --all --force-with-lease