add ssh key creation
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Patrick Michl 2022-02-16 23:13:58 +01:00
parent d3cc9b5630
commit c688b42cc2

View File

@ -15,4 +15,8 @@ steps:
HCLOUD_TOKEN: HCLOUD_TOKEN:
from_secret: hcloud_token from_secret: hcloud_token
commands: commands:
- 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 server list
- ./hcloud ssh-key delete drone