Add isolated UAT and production environments

This commit is contained in:
hz
2026-07-20 20:32:22 -05:00
parent 4e0ca70157
commit 17747d96a0
30 changed files with 780 additions and 282 deletions
+4
View File
@@ -4,6 +4,8 @@ ARG GODOT_VERSION=4.6.2
ARG GODOT_RELEASE=${GODOT_VERSION}-stable
ARG GODOT_TEMPLATE_DIR=${GODOT_VERSION}.stable
ARG BUILD_REVISION=development
ARG DEPLOYMENT_ENVIRONMENT=production
ARG PUBLIC_API_ORIGIN=https://s3q.ranaze.com
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
@@ -30,6 +32,8 @@ WORKDIR /src
COPY . .
RUN mkdir -p /build \
&& sed -i "s|build_revision=\"development\"|build_revision=\"${BUILD_REVISION}\"|" project.godot \
&& sed -i "s|deployment_environment=\"development\"|deployment_environment=\"${DEPLOYMENT_ENVIRONMENT}\"|" project.godot \
&& sed -i "s|https://s3q.ranaze.com|${PUBLIC_API_ORIGIN}|g" project.godot \
&& sed -i "s|custom_template/release=\"\"|custom_template/release=\"/root/.local/share/godot/export_templates/${GODOT_TEMPLATE_DIR}/web_nothreads_release.zip\"|" export_presets.cfg \
&& godot --headless --editor --path /src --quit \
&& godot --verbose --headless --path /src --export-release Web /build/index.html \