hcloud-tests/.drone.yml
Patrick Michl c688b42cc2
All checks were successful
continuous-integration/drone/push Build is passing
add ssh key creation
2022-02-16 23:13:58 +01:00

22 lines
561 B
YAML

kind: pipeline
type: docker
name: hcloud
steps:
- name: get hcloud
image: alpine
commands:
- apk add -U curl
- curl -L https://github.com/hetznercloud/cli/releases/latest/download/hcloud-linux-amd64.tar.gz | tar zx
- name: hcloud
image: alpine
environment:
HCLOUD_TOKEN:
from_secret: hcloud_token
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 ssh-key delete drone