test deploy
check / flake-check (push) Successful in 18s
deploy / deploy (push) Failing after 18s

This commit is contained in:
Lars Nolden
2026-06-30 18:11:23 +02:00
parent d5a0be9e40
commit e1b3017fb7
2 changed files with 14 additions and 2 deletions
+3 -1
View File
@@ -12,7 +12,9 @@ jobs:
- name: Setup deploy SSH key - name: Setup deploy SSH key
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
# install -m 600 /dev/stdin ~/.ssh/id_ed25519 <<< "${{ secrets.DEPLOY_SSH_KEY }}" # Dedicated key file so we never overwrite the runner user's own key.
# nix/deploy.nix pins this via `-i ~/.ssh/gebos_deploy`.
install -m 600 /dev/stdin ~/.ssh/gebos_deploy <<< "${{ secrets.DEPLOY_SSH_KEY }}"
ssh-keyscan -H db.gebos.online app.gebos.online ingest.gebos.online >> ~/.ssh/known_hosts 2>/dev/null || true ssh-keyscan -H db.gebos.online app.gebos.online ingest.gebos.online >> ~/.ssh/known_hosts 2>/dev/null || true
- name: Build all closures - name: Build all closures
+11 -1
View File
@@ -12,7 +12,17 @@ let
}; };
in in
{ {
sshOpts = [ "-o" "StrictHostKeyChecking=accept-new" ]; # The Gitea runner has a global `Host * IdentityFile ~/.ssh/larsnolden` in its
# ~/.ssh/config (a passphrase-locked key). `-F none` makes ssh ignore that
# config so it doesn't offer the wrong key; `-i` + IdentitiesOnly pins the
# dedicated deploy key the workflow installs. Applies to both `nix copy` and
# the activation SSH.
sshOpts = [
"-F" "none"
"-i" "~/.ssh/gebos_deploy"
"-o" "IdentitiesOnly=yes"
"-o" "StrictHostKeyChecking=accept-new"
];
autoRollback = true; autoRollback = true;
magicRollback = true; magicRollback = true;