mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 09:57:41 +00:00
Add build user for circleci instead of running as root.
This commit is contained in:
parent
8d98a447c5
commit
3fa025281f
@ -5,6 +5,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
- image: docker.io/sudoproject/debian:latest
|
- image: docker.io/sudoproject/debian:latest
|
||||||
|
user: build
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
@ -18,6 +19,7 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
docker:
|
docker:
|
||||||
- image: docker.io/sudoproject/debian:latest
|
- image: docker.io/sudoproject/debian:latest
|
||||||
|
user: build
|
||||||
steps:
|
steps:
|
||||||
# Reuse the workspace from the build job
|
# Reuse the workspace from the build job
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
|
@ -6,3 +6,4 @@ RUN DEBIAN_FRONTEND=noninteractive TZ=America/Denver apt-get update && \
|
|||||||
libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \
|
libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \
|
||||||
libaudit-dev libssl-dev python3-dev libpython3-dev \
|
libaudit-dev libssl-dev python3-dev libpython3-dev \
|
||||||
file lsb-release fakeroot procps git ssh openssh-client
|
file lsb-release fakeroot procps git ssh openssh-client
|
||||||
|
RUN useradd -ms /bin/bash build
|
||||||
|
@ -6,3 +6,4 @@ RUN DEBIAN_FRONTEND=noninteractive TZ=America/Denver apt-get update && \
|
|||||||
libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \
|
libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \
|
||||||
libaudit-dev libssl-dev python3-dev libpython3-dev \
|
libaudit-dev libssl-dev python3-dev libpython3-dev \
|
||||||
file lsb-release fakeroot procps git ssh openssh-client
|
file lsb-release fakeroot procps git ssh openssh-client
|
||||||
|
RUN useradd -ms /bin/bash build
|
||||||
|
@ -5,3 +5,4 @@ RUN dnf -y install audit-libs-devel cyrus-sasl-devel glibc-devel \
|
|||||||
libselinux-devel libsepol-devel openldap-devel openssl-devel pam-devel \
|
libselinux-devel libsepol-devel openldap-devel openssl-devel pam-devel \
|
||||||
python3-devel rpm-build zlib-devel binutils ed gcc gdb git openssh \
|
python3-devel rpm-build zlib-devel binutils ed gcc gdb git openssh \
|
||||||
procps which
|
procps which
|
||||||
|
RUN useradd -ms /bin/bash build
|
||||||
|
@ -5,3 +5,4 @@ RUN dnf -y install audit-libs-devel cyrus-sasl-devel glibc-devel \
|
|||||||
libselinux-devel libsepol-devel openldap-devel openssl-devel pam-devel \
|
libselinux-devel libsepol-devel openldap-devel openssl-devel pam-devel \
|
||||||
python3-devel rpm-build zlib-devel binutils ed gcc gdb git openssh \
|
python3-devel rpm-build zlib-devel binutils ed gcc gdb git openssh \
|
||||||
procps which
|
procps which
|
||||||
|
RUN useradd -ms /bin/bash build
|
||||||
|
@ -6,3 +6,4 @@ RUN DEBIAN_FRONTEND=noninteractive TZ=America/Denver apt-get update && \
|
|||||||
libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \
|
libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \
|
||||||
libaudit-dev libssl-dev python3-dev libpython3-dev \
|
libaudit-dev libssl-dev python3-dev libpython3-dev \
|
||||||
file lsb-release fakeroot procps git ssh openssh-client
|
file lsb-release fakeroot procps git ssh openssh-client
|
||||||
|
RUN useradd -ms /bin/bash build
|
||||||
|
@ -6,3 +6,4 @@ RUN DEBIAN_FRONTEND=noninteractive TZ=America/Denver apt-get update && \
|
|||||||
libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \
|
libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \
|
||||||
libaudit-dev libssl-dev python3-dev libpython3-dev \
|
libaudit-dev libssl-dev python3-dev libpython3-dev \
|
||||||
file lsb-release fakeroot procps git ssh openssh-client
|
file lsb-release fakeroot procps git ssh openssh-client
|
||||||
|
RUN useradd -ms /bin/bash build
|
||||||
|
@ -6,3 +6,4 @@ RUN DEBIAN_FRONTEND=noninteractive TZ=America/Denver apt-get update && \
|
|||||||
libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \
|
libsasl2-dev libselinux1-dev libsepol1-dev libssl-dev zlib1g-dev \
|
||||||
libaudit-dev libssl-dev python3-dev libpython3-dev \
|
libaudit-dev libssl-dev python3-dev libpython3-dev \
|
||||||
file lsb-release fakeroot procps git ssh openssh-client
|
file lsb-release fakeroot procps git ssh openssh-client
|
||||||
|
RUN useradd -ms /bin/bash build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user