Skip to content

Commit ac7c325

Browse files
No public description
PiperOrigin-RevId: 938057671
1 parent 6375d5f commit ac7c325

1 file changed

Lines changed: 14 additions & 8 deletions

File tree

release/kokoro/release_linux.sh

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,20 @@
1515

1616
set -e
1717

18+
echo "Updating ca-certificates..."
19+
apt-get update && apt-get install -y ca-certificates
20+
1821
if ! command -v pip3 &> /dev/null || ! command -v curl &> /dev/null || ! command -v docker &> /dev/null || ! command -v git &> /dev/null; then
1922
echo "Installing basic dependencies..."
20-
apt-get update && apt-get install -y python3-pip curl git ca-certificates
23+
apt-get install -y python3-pip curl git
24+
fi
25+
26+
if [ -f /var/cache/proxy.crt ]; then
27+
echo "Using proxy certificate for Git..."
28+
git config --global http.sslCAinfo /var/cache/proxy.crt
29+
else
2130
git config --global http.sslCAinfo /etc/ssl/certs/ca-certificates.crt
31+
fi
2232

2333
if ! command -v docker &> /dev/null; then
2434
echo "Installing docker CLI..."
@@ -36,7 +46,6 @@ if ! command -v pip3 &> /dev/null || ! command -v curl &> /dev/null || ! command
3646
mv docker /usr/local/bin/
3747
rm -f docker.tgz
3848
fi
39-
fi
4049

4150
# Avoid virtualenv/pip trying to download/upgrade tools from PyPI on host
4251
export VIRTUALENV_NO_DOWNLOAD=1
@@ -206,6 +215,7 @@ if [ "${DRY_RUN}" = "true" ]; then
206215
VERSION="0.1.2"
207216
fi
208217
popd
218+
209219
else
210220
pushd "${REPO_DIR}"
211221
git clone https://github.com/cel-expr/cel-python.git
@@ -261,12 +271,8 @@ if [ -z "${CIBWHEEL_BIN}" ]; then
261271
fi
262272
${CIBWHEEL_BIN} --platform linux --output-dir dist
263273

264-
if [ "${DRY_RUN}" = "true" ]; then
265-
echo "[DRY RUN] Skipping upload to PyPI exit gate."
266-
else
267-
echo "Uploading to OSS Exit Gate for autopush to PyPI..."
268-
python3 -m twine upload --repository-url https://us-python.pkg.dev/oss-exit-gate-prod/cel-expr-python--pypi dist/*
269-
fi
274+
echo "TEMPORARY: Uploading to OSS Exit Gate even in dry run..."
275+
python3 -m twine upload --repository-url https://us-python.pkg.dev/oss-exit-gate-prod/cel-expr-python--pypi dist/*
270276

271277
popd
272278

0 commit comments

Comments
 (0)