Migrate to Hetzner cloud

This commit is contained in:
Paul-Henri Froidmont 2019-08-22 05:11:27 +02:00
parent d3c99dad0b
commit c311cd4f7e
37 changed files with 416 additions and 299 deletions

14
get_hcloud_token.sh Executable file
View file

@ -0,0 +1,14 @@
#! /bin/bash
set -e
ENVIRONMENT=$(cat .environment)
HCLOUD_TOKEN=$(cat ~/.ssh/hcloud-$ENVIRONMENT-token)
if [ -z "$HCLOUD_TOKEN" ]
then
echo "Couldn't find your hetzner cloud token in '~/.ssh/hcloud-$ENVIRONMENT-token'"
exit 1
fi
echo $HCLOUD_TOKEN