Fix: move commands to entrypoint

This commit is contained in:
2025-04-15 20:31:44 +01:00
parent b602a2c22c
commit 6affb23a92
2 changed files with 19 additions and 8 deletions

16
entrypoint.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
set -e
echo "Copying repo files into container"
cp -r /github/workspace/. /srv/pterodactyl/.blueprint/dev/
echo "Running blueprint build"
blueprint -build
identifier=$(grep -m 1 "identifier:" /srv/pterodactyl/.blueprint/dev/conf.yml | cut -d ":" -f2 | xargs)
echo "Copying output back to workspace"
cp "/srv/pterodactyl/${identifier}.blueprint" "/github/workspace/${identifier}.blueprint"
# Set output if needed
echo "blueprint_file=${identifier}.blueprint" >> $GITHUB_OUTPUT