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" }