diff --git a/.gitea/workflows/deploy-web.yml b/.gitea/workflows/deploy-web.yml index 9357a38..24b2643 100644 --- a/.gitea/workflows/deploy-web.yml +++ b/.gitea/workflows/deploy-web.yml @@ -22,6 +22,11 @@ jobs: run: | echo "BUILD_TAG=$(git rev-parse HEAD)" >> "$GITHUB_ENV" + - name: Reclaim failed build layers + run: | + docker container prune -f + docker image prune -f + - name: Build Web game image run: | docker build -f web/Dockerfile -t "step3-web:${BUILD_TAG}" . diff --git a/web/Dockerfile b/web/Dockerfile index 8c619d0..a914985 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -18,9 +18,11 @@ RUN curl -fsSLO "https://github.com/godotengine/godot-builds/releases/download/$ && sha512sum --check selected-checksums.txt \ && unzip -q "Godot_v${GODOT_RELEASE}_linux.x86_64.zip" \ && install -m 0755 "Godot_v${GODOT_RELEASE}_linux.x86_64" /usr/local/bin/godot \ - && mkdir -p "/root/.local/share/godot/export_templates/${GODOT_TEMPLATE_DIR}" /tmp/godot-templates \ - && unzip -q "Godot_v${GODOT_RELEASE}_export_templates.tpz" -d /tmp/godot-templates \ - && cp -a /tmp/godot-templates/templates/. "/root/.local/share/godot/export_templates/${GODOT_TEMPLATE_DIR}/" + && mkdir -p "/root/.local/share/godot/export_templates/${GODOT_TEMPLATE_DIR}" \ + && unzip -j -q "Godot_v${GODOT_RELEASE}_export_templates.tpz" \ + templates/web_nothreads_debug.zip templates/web_nothreads_release.zip \ + -d "/root/.local/share/godot/export_templates/${GODOT_TEMPLATE_DIR}" \ + && rm -f Godot_v*.zip Godot_v*.tpz SHA512-SUMS.txt selected-checksums.txt WORKDIR /src COPY . .