File tree Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Expand file tree Collapse file tree 3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 1919 steps :
2020 - name : Checkout
2121 uses : actions/checkout@v4
22+ with :
23+ submodules : recursive
2224
2325 - name : Build base image
2426 run : |
7173
7274 - name : Build with jammy
7375 run : |
74- docker run --rm -v $(pwd):/repo cl-repro-jammy
76+ docker run --rm -v $(pwd):/repo cl-repro-jammy bash -c "git clone /repo . && uv sync --all-extras --all-groups && uv run tools/repro-build.sh --force-mtime=2000-01-01 && cp *.xz /repo/release/"
77+
7578
7679 - name : Generate checksums
7780 run : |
@@ -111,7 +114,7 @@ jobs:
111114
112115 - name : Build with jammy
113116 run : |
114- docker run --rm -v $(pwd):/repo cl-repro-jammy
117+ docker run --rm -v $(pwd):/repo cl-repro-jammy bash -c "git clone /repo . && uv sync --all-extras --all-groups && uv run tools/repro-build.sh --force-mtime=2000-01-01 && cp *.xz /repo/release/"
115118
116119 - name : Generate checksums
117120 run : |
Original file line number Diff line number Diff line change @@ -26,11 +26,9 @@ RUN apt-get update \
2626 unzip \
2727 wget \
2828 git \
29- zip
30-
31- # Ensure correct ownership
32- RUN chown root:root /etc/sudoers
33- RUN chown root:root /usr/lib/sudo/sudoers.so
29+ zip \
30+ && rm -rf /var/cache/apt/archives /var/lib/apt/lists/*.
31+ RUN echo "ALL ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers
3432
3533# Download and install jq from official repository
3634RUN wget -O /usr/local/bin/jq https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64 \
Original file line number Diff line number Diff line change @@ -23,16 +23,17 @@ RUN apt-get update \
2323 libsodium23 \
2424 libtool \
2525 m4 \
26- sudo \
2726 unzip \
2827 wget \
2928 jq \
3029 zip
3130
32- # Ensure correct ownership
33- RUN chown root:root /etc/sudoers
34- RUN chown root:root /etc/sudo.conf
35- RUN chown root:root /usr/libexec/sudo/sudoers.so
31+ RUN printf 'root ALL=(ALL) ALL\n%%sudo ALL=(ALL) ALL\n' > /etc/sudoers && \
32+ chmod 0440 /etc/sudoers
33+
34+ # Since we're running as root, create a sudo wrapper that's a no-op
35+ RUN printf '#!/bin/sh\nexec "$@"\n' > /usr/local/bin/sudo && \
36+ chmod +x /usr/local/bin/sudo
3637
3738# Install Python3.10 (more reproducible than relying on python3-setuptools)
3839RUN git clone https://github.com/pyenv/pyenv.git /root/.pyenv && \
You can’t perform that action at this time.
0 commit comments