Fix: base dir being made before alt loc is specified

This commit is contained in:
2025-04-15 20:51:00 +01:00
parent 6affb23a92
commit 04352cba3f
2 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,5 @@
FROM ghcr.io/blueprintframework/blueprint:v1.11.10 FROM ghcr.io/blueprintframework/blueprint:v1.11.10
ENV BASE_DIR=/srv/pterodactyl
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh

View File

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