renamed ssh key in action script

This commit is contained in:
Ingolf Wagner 2024-07-21 12:42:35 +02:00
parent e631dbf1ce
commit 56b672def4
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -32,20 +32,20 @@ jobs:
- name: nix flake archive - name: nix flake archive
run: | run: |
cat <<EOF > .id_rsa cat <<EOF > .ssh_key
${{ secrets.SSH_KEY }} ${{ secrets.SSH_KEY }}
EOF EOF
chmod 600 .id_rsa chmod 600 .ssh_key
eval $(ssh-agent) eval $(ssh-agent)
ssh-add .id_rsa ssh-add .ssh_key
nix flake archive nix flake archive
nix flake check --verbose --log-format raw nix flake check --verbose --log-format raw
echo $SSH_AGENT_PID echo $SSH_AGENT_PID
kill $SSH_AGENT_PID kill $SSH_AGENT_PID
rm .id_rsa rm .ssh_key
- name: nix build orbi - name: nix build orbi
run: nix build .#nixosConfigurations.orbi.config.system.build.toplevel run: nix build .#nixosConfigurations.orbi.config.system.build.toplevel