summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/deploy.yaml11
-rw-r--r--.known_hosts1
2 files changed, 4 insertions, 8 deletions
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
diff --git a/.known_hosts b/.known_hosts
new file mode 100644
index 0000000..ab29aeb
--- /dev/null
+++ b/.known_hosts
@@ -0,0 +1 @@
+atlas ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC7YiSYYx/+zmVOPSCERHzSsMeUQtA+Vt1W0sLUw4YhK