test ssh_key

This commit is contained in:
Ingolf Wagner 2024-07-20 00:58:36 +02:00
parent daf3c22cbb
commit 8123379c98
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -5,12 +5,18 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- run: | - run: |
cat <<EOF > $PWD/id_rsa cat <<EOF > .id_rsa
${{ secrets.SSH_KEY }} ${{ secrets.SSH_KEY }}
EOF EOF
chmod 600 $PWD/id_rsa chmod 600 .id_rsa
eval $(ssh-agent)
ssh add .id_rsa
NIX_SSHOPTS="-i $PWD/id_rsa" nix flake update NIX_SSHOPTS="-i $PWD/id_rsa" nix flake update
- run: nix build .#nixosConfigurations.orbi.config.system.build.toplevel - run: nix build .#nixosConfigurations.orbi.config.system.build.toplevel
- run: nix build .#nixosConfigurations.cream.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.cherry.config.system.build.toplevel
- run: nix build .#nixosConfigurations.chungus.config.system.build.toplevel - run: nix build .#nixosConfigurations.chungus.config.system.build.toplevel
- if: always()
run: |
echo $SSH_AGENT_PID
kill $SSH_AGENT_PID