From 8123379c98422afc9cc8e07b8ed64114194df608 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sat, 20 Jul 2024 00:58:36 +0200 Subject: [PATCH] test ssh_key --- .forgejo/workflows/build.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index d62f9e1..8bb9b71 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -5,12 +5,18 @@ jobs: steps: - uses: actions/checkout@v4 - run: | - cat < $PWD/id_rsa + cat < .id_rsa ${{ secrets.SSH_KEY }} 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 - 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