hcloud-tests/.drone.yml
Patrick Michl 966d05f7eb
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing
more debug
2022-02-17 22:16:21 +01:00

30 lines
717 B
YAML

kind: pipeline
type: docker
name: hcloud
steps:
- name: check requirements
image: alpine
commands:
- echo $server_id
- echo $SERVER_ID
- '[ -z "$SERVER_ID" ] && false'
- 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
- 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