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
Pierre Prinetti b6fc7d59b3
First commit
2023-07-13 14:56:28 +02:00

10 lines
185 B
Bash
Executable file

#!/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}"