use actions deploy key for ssh instead of personal key

this will allow us to connect to the machine for nixos-anywhere
This commit is contained in:
Noah Masur
2025-07-01 16:00:26 -06:00
parent 73002607ab
commit a9b3249e20
2 changed files with 9 additions and 6 deletions

View File

@ -154,11 +154,6 @@ jobs:
sleep 10
done
- name: Run nixos-anywhere
if: inputs.action == 'create'
run: |
nix run github:nix-community/nixos-anywhere -- --flake github:nmasur/dotfiles#flame --target-host ubuntu@${{ steps.host.outputs.stdout }}
- name: Write Identity Keys to Files
if: inputs.action == 'create'
run: |
@ -166,6 +161,13 @@ jobs:
chmod 0600 deploy_ed25519
echo "${{ env.FLAME_IDENTITY_BASE64 }}" | base64 -d > flame_ed25519
chmod 0600 flame_ed25519
mkdir -pv "${HOME}/.ssh/"
cp deploy_ed25519 "${HOME}/.ssh/id_ed25519"
- name: Run nixos-anywhere
if: inputs.action == 'create'
run: |
nix run github:nix-community/nixos-anywhere -- --flake github:nmasur/dotfiles#flame --target-host ubuntu@${{ steps.host.outputs.stdout }}
- name: Copy Identity File to Host
if: inputs.action == 'create'

View File

@ -58,5 +58,6 @@ variable "oci_private_key" {
variable "ssh_public_key" {
description = "Your public SSH key content."
type = string
default = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+AbmjGEwITk5CK9y7+Rg27Fokgj9QEjgc9wST6MA3s"
# default = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+AbmjGEwITk5CK9y7+Rg27Fokgj9QEjgc9wST6MA3s personal"
default = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKpPU2G9rSF8Q6waH62IJexDCQ6lY+8ZyVufGE3xMDGw actions-deploy"
}