From c688b42cc238bf065c449263c3b3540d2c31d0d4 Mon Sep 17 00:00:00 2001 From: Patrick Michl Date: Wed, 16 Feb 2022 23:13:58 +0100 Subject: [PATCH] add ssh key creation --- .drone.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a308366..49f4c2e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,4 +15,8 @@ steps: HCLOUD_TOKEN: from_secret: hcloud_token commands: - - ./hcloud server list \ No newline at end of file + - apk add openssh + - ssh-keygen -t ed25519 -f /root/.ssh/id_ed25519 -q -N '' + - ./hcloud ssh-key create --name drone --public-key-from-file /root/.ssh/id_ed25519.pub + - ./hcloud server list + - ./hcloud ssh-key delete drone \ No newline at end of file