ci: make Ubuntu container smoke test network-independent
This commit is contained in:
8
.github/workflows/ci-cd.yml
vendored
8
.github/workflows/ci-cd.yml
vendored
@@ -105,10 +105,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Testing basic container setup for Ubuntu ${{ matrix.ubuntu_version }}..."
|
echo "Testing basic container setup for Ubuntu ${{ matrix.ubuntu_version }}..."
|
||||||
docker run --rm ubuntu:${{ matrix.ubuntu_version }} /bin/bash -c "
|
docker run --rm ubuntu:${{ matrix.ubuntu_version }} /bin/bash -c "
|
||||||
export DEBIAN_FRONTEND=noninteractive &&
|
set -e &&
|
||||||
apt-get update -o Acquire::Retries=5 -o Acquire::http::Timeout=30 || apt-get update -o Acquire::Retries=5 -o Acquire::http::Timeout=30 &&
|
grep '^NAME=' /etc/os-release &&
|
||||||
apt-get install -y --no-install-recommends python3 ca-certificates --fix-missing &&
|
grep '^VERSION_ID=' /etc/os-release &&
|
||||||
python3 --version &&
|
bash --version > /dev/null &&
|
||||||
echo 'Ubuntu ${{ matrix.ubuntu_version }} container test successful'"
|
echo 'Ubuntu ${{ matrix.ubuntu_version }} container test successful'"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user