Exheredludis/ci/docker/exherbo/paludis-exherbo-gcc/build.sh
Marvin Schmidt 9bee89a948 ci: exherbo: Make Python version configurable
This allows using different Python versions in the stable and testing
docker images

We need to resolve using `--complete` so we don't break packages with
the default Python ABI which aren't in the resolution of `paludis-deps`
2020-03-10 06:05:47 +01:00

28 lines
654 B
Bash
Executable File

#!/usr/bin/env bash
# vim: set sw=4 sts=4 ts=4 et tw=80 :
# latest = current stable versions
# next = all testing versions unmasked
IMAGE_VERSION=${1:-latest}
PYTHON_ABI=3.7
if [[ ${IMAGE_VERSION} == "latest" ]]; then
DEPENDENCY_VERSIONS="stable"
elif [[ ${IMAGE_VERSION} == "next" ]]; then
DEPENDENCY_VERSIONS="testing broken"
PYTHON_ABI=3.8
else
echo "Unknown image version, use 'latest' or 'next'"
exit 1
fi
docker build \
--no-cache \
--rm \
--pull \
--build-arg DEPENDENCY_VERSIONS="${DEPENDENCY_VERSIONS}" \
--build-arg PYTHON_ABI="${PYTHON_ABI}" \
--tag paludis/exherbo-gcc:${IMAGE_VERSION} \
.