From a9b3249e201698ae8d9d82680edfce3c7386ed4a Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Tue, 1 Jul 2025 16:00:26 -0600 Subject: [PATCH] use actions deploy key for ssh instead of personal key this will allow us to connect to the machine for nixos-anywhere --- .github/workflows/flame.yml | 12 +++++++----- deploy/oracle/variables.tf | 3 ++- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/flame.yml b/.github/workflows/flame.yml index f6967de..84ad59c 100644 --- a/.github/workflows/flame.yml +++ b/.github/workflows/flame.yml @@ -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' diff --git a/deploy/oracle/variables.tf b/deploy/oracle/variables.tf index abf0190..4935ca7 100644 --- a/deploy/oracle/variables.tf +++ b/deploy/oracle/variables.tf @@ -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" }