ci: Change github UID from 3434 to 1001.

CircleCI expected 3434; GitHub Actions expects 1001.  This is the
reason zulip-ci.yml currently needs to mess with the permissions in
/__w.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-10-13 18:47:03 -07:00 committed by Tim Abbott
parent 3bd3173b1f
commit 9f2ac49fb3
1 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,8 @@ RUN apt-get update \
zlib1g-dev zlib1g-dev
ARG USERNAME=github ARG USERNAME=github
RUN groupadd --gid 3434 $USERNAME \ RUN groupadd --gid 1001 $USERNAME \
&& useradd --uid 3434 --gid $USERNAME --shell /bin/bash --create-home $USERNAME \ && useradd --uid 1001 --gid $USERNAME --shell /bin/bash --create-home $USERNAME \
&& echo "$USERNAME ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers.d/50-$USERNAME \ && echo "$USERNAME ALL = (ALL) NOPASSWD: ALL" >> /etc/sudoers.d/50-$USERNAME \
&& echo 'Defaults env_keep += "DEBIAN_FRONTEND"' >> /etc/sudoers.d/env_keep && echo 'Defaults env_keep += "DEBIAN_FRONTEND"' >> /etc/sudoers.d/env_keep