teleport yaml check
Build and Push Docker Images / build-and-push (push) Successful in 22s

This commit is contained in:
2025-09-25 19:03:50 +02:00
parent ecfd659ade
commit a4f1ff23a8
+6 -2
View File
@@ -53,8 +53,12 @@ if [ -n "$TELEPORT_VERSION" ] && [ -n "$TELEPORT_URL" ] && [ -n "$TELEPORT_TOKEN
fi
# Create teleport configuration
teleport configure --roles=node --token="$TELEPORT_TOKEN" --proxy="$TELEPORT_URL" --no-acme -o file
echo "Created teleport configuration file"
if [ ! -f /etc/teleport.yaml ]; then
teleport configure --roles=node --token="$TELEPORT_TOKEN" --proxy="$TELEPORT_URL" --no-acme -o file
echo "Created teleport configuration file"
else
echo "Teleport configuration file already exists, skipping configuration creation"
fi
# Get the hostname of the machine
HOSTNAME=$(hostname)