ci: build Godot web export inside Dockerfile to avoid dind workspace mount issue

This commit is contained in:
dingo
2026-02-28 03:20:50 +00:00
parent 1301208fc5
commit 1252486c3c
2 changed files with 6 additions and 12 deletions
+6 -3
View File
@@ -1,5 +1,8 @@
FROM barichello/godot-ci:4.2.2 AS build
WORKDIR /project
COPY . .
RUN godot --headless --path /project --export-release "Web" build/web/index.html
FROM nginx:1.27-alpine
COPY build/web/ /usr/share/nginx/html/
COPY --from=build /project/build/web/ /usr/share/nginx/html/
EXPOSE 80