mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 11:30:13 +00:00
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:
12
.github/workflows/flame.yml
vendored
12
.github/workflows/flame.yml
vendored
@ -154,11 +154,6 @@ jobs:
|
|||||||
sleep 10
|
sleep 10
|
||||||
done
|
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
|
- name: Write Identity Keys to Files
|
||||||
if: inputs.action == 'create'
|
if: inputs.action == 'create'
|
||||||
run: |
|
run: |
|
||||||
@ -166,6 +161,13 @@ jobs:
|
|||||||
chmod 0600 deploy_ed25519
|
chmod 0600 deploy_ed25519
|
||||||
echo "${{ env.FLAME_IDENTITY_BASE64 }}" | base64 -d > flame_ed25519
|
echo "${{ env.FLAME_IDENTITY_BASE64 }}" | base64 -d > flame_ed25519
|
||||||
chmod 0600 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
|
- name: Copy Identity File to Host
|
||||||
if: inputs.action == 'create'
|
if: inputs.action == 'create'
|
||||||
|
@ -58,5 +58,6 @@ variable "oci_private_key" {
|
|||||||
variable "ssh_public_key" {
|
variable "ssh_public_key" {
|
||||||
description = "Your public SSH key content."
|
description = "Your public SSH key content."
|
||||||
type = string
|
type = string
|
||||||
default = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+AbmjGEwITk5CK9y7+Rg27Fokgj9QEjgc9wST6MA3s"
|
# default = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB+AbmjGEwITk5CK9y7+Rg27Fokgj9QEjgc9wST6MA3s personal"
|
||||||
|
default = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKpPU2G9rSF8Q6waH62IJexDCQ6lY+8ZyVufGE3xMDGw actions-deploy"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user