This commit is contained in:
Andras Bacsai
2025-10-02 11:56:30 +02:00
parent 04840b3803
commit 9ff5ee5b67
2 changed files with 20 additions and 1 deletions

19
nuxt/static/build.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
set -e
# Validate SSH key
if [ -n "$KEY" ]; then
echo "Validating SSH key..."
echo "$KEY" | ssh-keygen -l -f - > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "✓ SSH key is valid"
else
echo "✗ SSH key is invalid"
exit 1
fi
else
echo "⚠ KEY environment variable not set, skipping validation"
fi
# Continue with build
nuxt build