selfprivacy-nixos-infect/.drone.yml

35 lines
1.4 KiB
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 06:21:49 +00:00
-d '{"name":"ci-sibling","server_type":"cx11","start_after_create":true,"image":"ubuntu-20.04", "volumes":[], "networks":[], "user_data":"#cloud-config\\nruncmd:\\n- curl https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-infect/raw/branch/rolling-testing/nixos-infect | PROVIDER=hetzner NIX_CHANNEL=nixos-21.05 DOMAIN=ruleit.stream LUSER=cicdcicd PASSWORD=cicdcicdpass CF_TOKEN=228337 DB_PASSWORD=228337 API_TOKEN=228337 HOSTNAME=ruleit.stream bash 2>&1 | tee /tmp/infect.log","labels":{},"automount":false, "location":"fsn1"}'
'https://api.hetzner.cloud/v1/servers'
- name: sleep
commands:
- sleep 360
- name: test
commands:
- >
curl -H "Authorization: Bearer 228337" 'https://api.ruleit.stream/services/status'
- >
2021-12-23 07:48:33 +00:00
swaks --to ci@selfprivacy.org -s selfprivacy.org -tls -au test@ci.selfprivacy.org -ap 228337
- >
curl --user admin:228337 https://cloud.ruleit.stream/ocs/v2.php/apps/serverinfo/api/v1/info?format=json
- echo "blah-blah" > file
- >
curl -T file -u admin:228337 https://cloud.ruleit.stream/remote.php/dav/files/admin/file
- >
curl -u admin:228337 https://cloud.ruleit.stream/remote.php/dav/files/admin/file