1
0
Fork 0
mirror of https://codeberg.org/pierreprinetti/forgejo-hetzner-runner.git synced 2025-06-27 16:25:53 +00:00
forgejo-hetzner-runner/runner-down.sh

11 lines
185 B
Bash
Raw Normal View History

2023-07-07 20:04:22 +02:00
#!/usr/bin/env bash
set -Eeuo pipefail
declare -r id="$1"
curl -isS \
-X DELETE \
-H "Authorization: Bearer ${HETZNER_API_TOKEN}" \
"https://api.hetzner.cloud/v1/servers/${id}"