Skip to content

Commit ede547c

Browse files
Merge pull request #1487 from RS-PYTHON/fix/layer-cleanup-debug-mode
fix: restore debug mode
2 parents 69583e0 + 2035b02 commit ede547c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/actions/publish-docker/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@ runs:
106106
commands=$(cat << "EOF"
107107
USER root
108108
COPY ./git_debug_image.sh ./git_debug_image.sh
109-
RUN set -e; chmod u+x ./git_debug_image.sh; apt update && ./git_debug_image.sh ${{ inputs.branch_name }}; \
110-
rm -f ./git_debug_image.sh ; layer-cleanup.sh
109+
RUN set -e; chmod u+x ./git_debug_image.sh; apt update; ./git_debug_image.sh ${{ inputs.branch_name }}; \
110+
rm -f ./git_debug_image.sh ; \
111+
layer-cleanup.sh
111112
WORKDIR /home/user/rs-server
112113
EOF
113114
)

.github/scripts/git_debug_image.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ ROOT_DIR="$(realpath $SCRIPT_DIR/..)"
2626
BRANCH_NAME="$1" # git branch name
2727

2828
# Install components in the docker images
29+
. /etc/os-release
30+
echo "deb http://deb.debian.org/debian $VERSION_CODENAME main" > /etc/apt/sources.list
2931
apt update
3032
apt install -y git vim emacs-nox
3133

@@ -73,4 +75,4 @@ done
7375
chown -R user:user /home/user/rs-server
7476

7577
# Clean everything
76-
rm -rf /tmp/whl /root/.cache/pip /var/cache/apt/archives /var/lib/apt/lists/*
78+
rm -rf /tmp/whl /root/.cache/pip /var/cache/apt/archives /var/lib/apt/lists/* /etc/apt/sources.list

0 commit comments

Comments
 (0)