10 Commits
dev ... v1.0.0

Author SHA1 Message Date
52582315eb Fix: Incorrect output var name 2025-04-15 21:57:50 +01:00
be9389f59b Update entrypoint.sh 2025-04-15 21:50:21 +01:00
1487bb6b5b debug 2025-04-15 21:45:54 +01:00
769b79a83a Fix: remove dev mode check from export script, change from build command to export 2025-04-15 21:41:35 +01:00
891f7437c2 Fix: Change relative ptero dir to absolute dir 2025-04-15 21:02:40 +01:00
04352cba3f Fix: base dir being made before alt loc is specified 2025-04-15 20:51:00 +01:00
6affb23a92 Fix: move commands to entrypoint 2025-04-15 20:31:44 +01:00
b602a2c22c debugging 2025-04-15 20:26:17 +01:00
1e5c8fd21c Fix: make gh workspace copy dir relative 2025-04-15 20:23:19 +01:00
Zephrynis
6b57cb2f45 Merge pull request #1 from zephrynis/dev
Create Dockerfile and action.yml
2025-04-15 20:05:11 +01:00
2 changed files with 26 additions and 8 deletions

View File

@@ -1,11 +1,6 @@
FROM ghcr.io/blueprintframework/blueprint:v1.11.10
ENV BASE_DIR=/srv/pterodactyl
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
COPY ./github/workspace/. /srv/pterodactyl/.blueprint/dev/
RUN blueprint -build
RUN identifier=$(cat /srv/pterodactyl/.blueprint/dev/conf.yml | grep -m 1 "identifier:" | cut -d ":" -f2 | xargs) && \
cp /srv/pterodactyl/${identifier}.blueprint /github/workspace/${identifier}.blueprint && \
echo "${identifier}.blueprint" >> $GITHUB_OUTPUT
ENTRYPOINT ["/entrypoint.sh"]

23
entrypoint.sh Normal file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
set -e
echo "Copying repo files into container"
cp -R /github/workspace/. /app/.blueprint/dev/
echo "Patching export script"
sed -i '4d' /app/scripts/commands/developer/export.sh
cd /app/.blueprint/dev
ls
cd /app/
echo "Running blueprint export"
blueprint -export
identifier=$(grep -m 1 "identifier:" /app/.blueprint/dev/conf.yml | cut -d ":" -f2 | xargs)
echo "Copying output back to workspace"
cp "/app/${identifier}.blueprint" "/github/workspace/${identifier}.blueprint"
echo "file=${identifier}.blueprint" >> $GITHUB_OUTPUT