diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index f4bbe16..07580a3 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -14,6 +14,7 @@ jobs: env: NIXPKGS_ALLOW_UNFREE: "1" HOME: /var/lib/gitea-runner + NIX_SSHOPTS: "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /var/lib/gitea-runner/.ssh/id_ed25519" steps: - name: Checkout run: git clone https://git.cyperpunk.de/DerGrumpf/cyper-nix.git . @@ -23,12 +24,8 @@ jobs: mkdir -p ~/.ssh echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519 - echo "StrictHostKeyChecking no" >> ~/.ssh/config - ssh-keyscan -H 192.168.2.2 192.168.2.40 192.168.2.30 192.168.2.31 localhost >> ~/.ssh/known_hosts - ssh-keyscan -H proxy.cyperpunk.de >> ~/.ssh/known_hosts - name: Deploy cyper-controller - continue-on-error: true run: | nixos-rebuild switch --flake .#cyper-controller \ --target-host phil@192.168.2.2 \ @@ -44,7 +41,6 @@ jobs: --elevate=sudo - name: Deploy cyper-proxy - continue-on-error: true run: | nixos-rebuild switch --flake .#cyper-proxy \ --target-host phil@proxy.cyperpunk.de \