From 3a01055772265e127e826e0ae5a8cc004b7d255e Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Wed, 22 Dec 2021 07:37:15 +0200 Subject: [PATCH] Added Drone CI integration --- .drone.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..99b13b4 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,15 @@ +kind: pipeline +type: exec +name: default + +steps: +- name: deploy + environment: + PASSWORD: + from_secret: HETZNER_TOKEN + commands: + - > + curl -X POST \ + -H "Authorization: Bearer $HETZNER_TOKEN" + -H "Content-Type: application/json" \ + -d '{"automount":false,"datacenter":"nbg1-dc3,"firewalls":[],"image":"ubuntu-20.04","labels":{},"location":"nbg1","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":[]"}' \ No newline at end of file