nixos-config/.forgejo/workflows/build.yaml

23 lines
739 B
YAML
Raw Normal View History

2024-07-19 19:00:35 +02:00
on: [push]
jobs:
build:
runs-on: native
steps:
2024-07-19 19:12:42 +02:00
- uses: actions/checkout@v4
2024-07-19 22:50:32 +02:00
- run: |
2024-07-20 00:58:36 +02:00
cat <<EOF > .id_rsa
2024-07-20 00:06:03 +02:00
${{ secrets.SSH_KEY }}
EOF
2024-07-20 00:58:36 +02:00
chmod 600 .id_rsa
eval $(ssh-agent)
2024-07-20 01:00:42 +02:00
ssh-add .id_rsa
2024-07-20 00:13:08 +02:00
NIX_SSHOPTS="-i $PWD/id_rsa" nix flake update
2024-07-19 21:55:40 +02:00
- run: nix build .#nixosConfigurations.orbi.config.system.build.toplevel
- run: nix build .#nixosConfigurations.cream.config.system.build.toplevel
- run: nix build .#nixosConfigurations.cherry.config.system.build.toplevel
- run: nix build .#nixosConfigurations.chungus.config.system.build.toplevel
2024-07-20 00:58:36 +02:00
- if: always()
run: |
echo $SSH_AGENT_PID
kill $SSH_AGENT_PID