nixos-config/.forgejo/workflows/build.yaml
Ingolf Wagner 4decf1a76b
Some checks failed
/ build (push) Has been cancelled
test ssh_key
2024-07-20 01:00:42 +02:00

23 lines
739 B
YAML

on: [push]
jobs:
build:
runs-on: native
steps:
- uses: actions/checkout@v4
- run: |
cat <<EOF > .id_rsa
${{ secrets.SSH_KEY }}
EOF
chmod 600 .id_rsa
eval $(ssh-agent)
ssh-add .id_rsa
NIX_SSHOPTS="-i $PWD/id_rsa" nix flake update
- 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
- if: always()
run: |
echo $SSH_AGENT_PID
kill $SSH_AGENT_PID