diff --git a/build/includes/website.mk b/build/includes/website.mk index bced4c2377..7013a4b7f4 100644 --- a/build/includes/website.mk +++ b/build/includes/website.mk @@ -30,8 +30,8 @@ GID := $(shell id -g) site-server: ARGS ?=-F site-server: ENV ?= RELEASE_VERSION="$(base_version)" RELEASE_BRANCH=main site-server: ensure-build-image - docker run --user $(UID):$(GID) --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) -p 1313:1313 $(build_tag) bash -c \ - "$(ENV) hugo server --watch --baseURL=http://localhost:1313/ --bind=0.0.0.0 $(ARGS)" + docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) -p 1313:1313 $(build_tag) bash -c \ + "git config --global --add safe.directory /go/src/agones.dev/agones && $(ENV) hugo server --watch --baseURL=http://localhost:1313/ --bind=0.0.0.0 $(ARGS)" site-static: ensure-build-image -docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) $(build_tag) rm -r ./public @@ -44,7 +44,7 @@ site-static: ensure-build-image docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) $(build_tag) \ bash -c "npm list autoprefixer || npm install autoprefixer@9.8.6" docker run --rm $(common_mounts) --workdir=$(mount_path)/site $(DOCKER_RUN_ARGS) $(build_tag) bash -c \ - "git config --global --add safe.directory /go/src/agones.dev/agones && $(ENV) hugo --config=config.toml $(ARGS)" + "git config --global --add safe.directory /go/src/agones.dev/agones && $(ENV) hugo --config=config.toml $(ARGS)" site-gen-app-yaml: SERVICE ?= default site-gen-app-yaml: