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

View File

@@ -2,12 +2,7 @@ FROM ghcr.io/blueprintframework/blueprint:v1.11.10
ENV BASE_DIR=/srv/pterodactyl
RUN ls
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"]