Redot Image - Two Stage Build
All checks were successful
Build Runner Images / base (push) Successful in 24s
Build Runner Images / base-glib (push) Successful in 25s
Build Runner Images / extended-latest (js) (push) Successful in 8s
Build Runner Images / extended-versioned (lua, 5.3) (push) Successful in 12s
Build Runner Images / extended-versioned (lua, 5.4) (push) Successful in 13s
Build Runner Images / extended-versioned (java, 21) (push) Successful in 38s
Build Runner Images / extended-versioned (php, 8.3) (push) Successful in 6s
Build Runner Images / extended-versioned (php, 8.2) (push) Successful in 16s
Build Runner Images / extended-versioned (java, 8) (push) Successful in 53s
Build Runner Images / extended-latest (go) (push) Successful in 1m4s
Build Runner Images / extended-versioned (java, 17) (push) Successful in 1m4s
Build Runner Images / glib-extended-versioned (redot, 4.3) (push) Successful in 1m39s

This commit is contained in:
Snoweuph 2025-01-30 12:01:59 +01:00
parent d97b5d69d4
commit 9592e64ad1
Signed by: snoweuph
GPG key ID: BEFC41DA223CEC55

View file

@ -1,4 +1,23 @@
FROM git.euph.dev/actions/runner-basic-glib:latest FROM alpine:latest AS build-stage
ARG PACKAGE_VERSION
RUN apk add --no-cache curl
RUN wget $( \
curl -s https://api.github.com/repos/Redot-Engine/redot-engine/releases/tags/redot-$PACKAGE_VERSION-stable \
| grep "browser_download_url.*Redot_v.*-stable_export_templates\.tpz" \
| cut -d '"' -f 4 - \
| head -n 1 \
) -O Redot_Export_Templates.tbz
RUN unzip Redot_Export_Templates.tbz
RUN rm -f templates/*debug*
RUN rm Redot_Export_Templates.tbz
FROM git.euph.dev/actions/runner-basic-glib:latest AS final-stage
ARG PACKAGE_VERSION ARG PACKAGE_VERSION
@ -27,15 +46,24 @@ RUN wget $( \
&& sudo mv ./Redot_v*-stable_linux.x86_64 /usr/local/bin/redot \ && sudo mv ./Redot_v*-stable_linux.x86_64 /usr/local/bin/redot \
&& rm Redot.zip && rm Redot.zip
RUN wget $( \ RUN mkdir -p /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable
curl -s https://api.github.com/repos/Redot-Engine/redot-engine/releases/tags/redot-$PACKAGE_VERSION-stable \ COPY --from=build-stage /templates/android_release.apk /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
| grep "browser_download_url.*Redot_v.*-stable_export_templates\.tpz" \ COPY --from=build-stage /templates/android_source.zip /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
| cut -d '"' -f 4 - \ COPY --from=build-stage /templates/ios.zip /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
| head -n 1 \ COPY --from=build-stage /templates/linux_release.arm32 /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
) -O Redot_Export_Templates.tbz \ COPY --from=build-stage /templates/linux_release.arm64 /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
&& sudo tar --extract --file=Redot_Export_Templates.tbz --wildcards --no-anchored --exclude='*debug*' -C templates \ COPY --from=build-stage /templates/linux_release.x86_32 /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
&& sudo unzip Redot_Export_Templates.tbz \ COPY --from=build-stage /templates/linux_release.x86_64 /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
&& mkdir -p /home/runner/.local/share/redot/export_templates \ COPY --from=build-stage /templates/macos.zip /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
&& sudo mv ./templates /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable \ COPY --from=build-stage /templates/version.txt /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
&& rm Redot_Export_Templates.tbz COPY --from=build-stage /templates/web_dlink_nothreads_release.zip /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
COPY --from=build-stage /templates/web_dlink_release.zip /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
COPY --from=build-stage /templates/web_nothreads_release.zip /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
COPY --from=build-stage /templates/web_release.zip /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
COPY --from=build-stage /templates/windows_release_arm64_console.exe /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
COPY --from=build-stage /templates/windows_release_arm64.exe /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
COPY --from=build-stage /templates/windows_release_x86_32_console.exe /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
COPY --from=build-stage /templates/windows_release_x86_32.exe /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
COPY --from=build-stage /templates/windows_release_x86_64_console.exe /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/
COPY --from=build-stage /templates/windows_release_x86_64.exe /home/runner/.local/share/redot/export_templates/$PACKAGE_VERSION.stable/