fix flake updater and don’t run pipeline for other branches

This commit is contained in:
Charlotte 🦝 Delenk 2022-06-24 06:52:30 +01:00
parent 0b4b783e69
commit b9366ae035
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -9,6 +9,7 @@ steps:
commands:
- echo "substituters = https://cache.nixos.org/ https://f000.backblazeb2.com/file/cache-chir-rs/" >> /etc/nix/nix.conf
- echo "trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nixcache:8KKuGz95Pk4UJ5W/Ni+pN+v+LDTkMMFV4yrGmAYgkDg= hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs=" >> /etc/nix/nix.conf
- echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
- nix flake update
- (cd minecraft && ./update.sh)
- (cd mastodon && ./update.sh)
@ -51,3 +52,6 @@ steps:
image: curlimages/curl:latest
commands:
- curl --get --data-urlencode "jobsets=darkkirb:nix-packages" https://hydra.chir.rs/api/push
trigger:
branch:
- main