Skip to content

Commit 6f50ee1

Browse files
authored
Merge pull request #382 from adamrehn/gha-homedir-override-fix
Set XDG_CONFIG_HOME to prevent engine config paths breaking when GitHub Actions overrides HOME
2 parents e0775a2 + 96ed0b4 commit 6f50ee1

File tree

1 file changed

+5
-0
lines changed
  • src/ue4docker/dockerfiles/ue4-minimal/linux

1 file changed

+5
-0
lines changed

src/ue4docker/dockerfiles/ue4-minimal/linux/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ COPY --from=builder --chown=ue4:ue4 /home/ue4/UnrealEngine/Components/TemplatesA
8282
COPY --from=builder --chown=ue4:ue4 /home/ue4/.config/Epic/UnrealEngine/Install.ini /home/ue4/.config/Epic/UnrealEngine/Install.ini
8383
WORKDIR /home/ue4/UnrealEngine
8484

85+
# GitHub Actions forcibly overrides $HOME and redirects it to a host directory that is bind-mounted at `/github/home`,
86+
# so we need to explicitly set XDG_CONFIG_HOME to ensure this does not bypass our engine config files and break things
87+
# (see: <https://github.com/actions/runner/issues/863>)
88+
ENV XDG_CONFIG_HOME=/home/ue4/.config
89+
8590
{% if not disable_labels %}
8691
# Add labels to the built image to identify which components (if any) were excluded from the build that it contains
8792
LABEL com.adamrehn.ue4-docker.excluded.ddc={% if excluded_components.ddc == true %}1{% else %}0{% endif %}

0 commit comments

Comments
 (0)