From 227009d11cc3a26088f71e21c01710d89cde8717 Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Wed, 27 Dec 2023 10:43:18 +1000 Subject: [PATCH] switch to effect for darwin ssh deploy --- .github/workflows/darwin.yml | 60 ------------------------------------ dev/effect-deploy.nix | 31 +++++++++++++++++++ flake.nix | 2 ++ 3 files changed, 33 insertions(+), 60 deletions(-) delete mode 100644 .github/workflows/darwin.yml create mode 100644 dev/effect-deploy.nix diff --git a/.github/workflows/darwin.yml b/.github/workflows/darwin.yml deleted file mode 100644 index 7ec610f88..000000000 --- a/.github/workflows/darwin.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: "darwin" - -on: - push: - branches: [master] - workflow_dispatch: - -concurrency: - group: "darwin" - cancel-in-progress: false - -jobs: - deploy: - environment: - name: darwin - strategy: - fail-fast: false - matrix: - host: [darwin01, darwin02] - runs-on: ubuntu-latest - timeout-minutes: 15 - steps: - - uses: actions/checkout@v4 - - name: Install Nix - uses: cachix/install-nix-action@v29 - with: - extra_nix_config: | - accept-flake-config = true - experimental-features = nix-command flakes - - name: Setup SSH - env: - SSH_KEY: "${{ secrets.SSH_KEY }}" - run: | - mkdir -p "$HOME/.ssh" - cat >>"$HOME/.ssh/id_ed25519" <>"$HOME/.ssh/known_hosts" - cat >>"$HOME/.ssh/config" <>~/.ssh/known_hosts <