From 3358ee42f9f09979576f2acbb4f39e707fb24085 Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 11 Dec 2023 14:44:32 -0500 Subject: actions: use existing known_hosts file for deploy --- .github/workflows/deploy.yaml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to '.github') diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 117ddfd..34f4f26 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -35,19 +35,14 @@ jobs: oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} tags: tag:gha - - name: Add pubkeys to known_hosts + - name: Copy known_hosts run: | set -eux [ ! -d ~/.ssh ] && mkdir -p ~/.ssh - pubkeys=( - "atlas ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC7YiSYYx/+zmVOPSCERHzSsMeUQtA+Vt1W0sLUw4YhK" - ) - - for key in "${pubkeys[@]}"; do echo "$key" >> ~/.ssh/known_hosts; done + cp .known_hosts ~/.ssh/known_hosts - name: Run deploy run: | nix develop --accept-flake-config \ - --command bash \ - -c "just deploy-all" + --command just deploy-all -- cgit v1.2.3