hcloud-tests/.drone.yml
Patrick Michl 38a2ac5e8e
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
try parameter expansion
2022-02-17 21:08:05 +01:00

24 lines
612 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
SERVER_ID: $server_id
commands:
# - apk add openssh
- echo $SERVER_ID
# - 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