mirror of
https://github.com/blueprint-community/action-export.git
synced 2026-02-19 12:11:55 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0dbfb9b03f |
11
Dockerfile
11
Dockerfile
@@ -1,6 +1,11 @@
|
|||||||
FROM ghcr.io/blueprintframework/blueprint:v1.11.10
|
FROM ghcr.io/blueprintframework/blueprint:v1.11.10
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
ENV BASE_DIR=/srv/pterodactyl
|
||||||
RUN chmod +x /entrypoint.sh
|
|
||||||
|
|
||||||
ENTRYPOINT ["/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
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
#!/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
|
|
||||||
Reference in New Issue
Block a user