Skip to content

Commit

Permalink
Run Linux packaging as root because of GHA limitations (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx authored Jun 26, 2024
1 parent e5d6df5 commit 0a18cb5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions alpine-3.17.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,12 @@ ENV CXX=clang++
RUN gem install tebako

ENV HOME=/home/tebako
RUN adduser --disabled-password --gecos "" --home $HOME tebako && \
printf "\ntebako\tALL=(ALL)\tNOPASSWD:\tALL" > /etc/sudoers.d/tebako
# https://github.com/actions/checkout/issues/1014
# RUN adduser --disabled-password --gecos "" --home $HOME tebako && \
# printf "\ntebako\tALL=(ALL)\tNOPASSWD:\tALL" > /etc/sudoers.d/tebako
# USER tebako

COPY test $HOME/test
USER tebako
WORKDIR $HOME

# Create packaging environment for Ruby 3.1.5, 3.2.4
Expand Down
7 changes: 4 additions & 3 deletions ubuntu-20.04.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ RUN /opt/tools/tools.sh install_cmake && \
RUN gem install tebako

ENV HOME=/home/tebako
RUN adduser --disabled-password --gecos "" --home $HOME tebako && \
printf "\ntebako\tALL=(ALL)\tNOPASSWD:\tALL" > /etc/sudoers.d/tebako
# https://github.com/actions/checkout/issues/1014
# RUN adduser --disabled-password --gecos "" --home $HOME tebako && \
# printf "\ntebako\tALL=(ALL)\tNOPASSWD:\tALL" > /etc/sudoers.d/tebako
# USER tebako

COPY test $HOME/test
USER tebako
WORKDIR $HOME

# Create packaging environment for Ruby 3.1.5, 3.2.4
Expand Down

0 comments on commit 0a18cb5

Please sign in to comment.