selfprivacy-nixos-infect/.drone.yml

16 lines
575 B
YAML
Raw Normal View History

2021-12-22 05:37:15 +00:00
kind: pipeline
type: exec
name: default
steps:
- name: deploy
environment:
PASSWORD:
from_secret: HETZNER_TOKEN
commands:
- >
2021-12-22 05:41:51 +00:00
curl -X POST
2021-12-22 05:50:19 +00:00
-H "Authorization: Bearer $PASSWORD"
2021-12-22 05:41:51 +00:00
-H "Content-Type: application/json"
2021-12-22 05:59:11 +00:00
-d '{"automount":false,"firewalls":[],"image":"ubuntu-20.04","labels":{},"location":"fsn1","name":"ci-sibling","networks":[],"server_type":"cx11","ssh_keys":[],"start_after_create":true,"user_data":"#cloud-config\nruncmd:\n- [touch, /root/cloud-init-worked]\n","volumes":[]}'
2021-12-22 05:40:24 +00:00
'https://api.hetzner.cloud/v1/servers'