[3.13] gh-124612: Use ghcr.io/python/autoconf instead of public image (GH-124657) (#126183)

(cherry picked from commit b502573f7f)

Co-authored-by: Donghee Na <donghee.na@python.org>
This commit is contained in:
Miss Islington (bot) 2024-10-30 15:19:15 +01:00 committed by GitHub
parent 6b0ef1fd6f
commit d24ea899e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,12 +5,10 @@ set -e -x
# The check_autoconf_regen job of .github/workflows/build.yml must kept in
# sync with this script. Use the same container image than the job so the job
# doesn't need to run autoreconf in a container.
IMAGE="ubuntu:22.04"
DEPENDENCIES="autotools-dev autoconf autoconf-archive pkg-config"
IMAGE="ghcr.io/python/autoconf:2024.10.06.11200919239"
AUTORECONF="autoreconf -ivf -Werror"
WORK_DIR="/src"
SHELL_CMD="apt-get update && apt-get -yq install $DEPENDENCIES && cd $WORK_DIR && $AUTORECONF"
abs_srcdir=$(cd $(dirname $0)/../..; pwd)
@ -28,4 +26,4 @@ if command -v selinuxenabled >/dev/null && selinuxenabled; then
PATH_OPT=":Z"
fi
"$RUNTIME" run --rm -v "$abs_srcdir:$WORK_DIR$PATH_OPT" "$IMAGE" /usr/bin/bash -c "$SHELL_CMD"
"$RUNTIME" run --rm -v "$abs_srcdir:$WORK_DIR$PATH_OPT" "$IMAGE"