mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 10:02:56 +01:00
bullseye is the latest stable, and this is what we will be using for Cloud Native GitLab going forward so we should test with this. Since an upgrade of the operating system may break pre-compiled C extensions, we now introduce a DEBIAN environment flag that defaults to the legacy buster install but allows us to roll out a bullseye image with `debian-bullseye` as the image name prefix.
12 lines
340 B
Bash
12 lines
340 B
Bash
TOOLS=(DEBIAN RUBY GOLANG GIT LFS CHROME NODE YARN POSTGRESQL GRAPHICSMAGICK PGBOUNCER BAZELISK)
|
|
|
|
function get_image_name(){
|
|
local IMAGE_NAME
|
|
IMAGE_NAME=""
|
|
for tool in "${TOOLS[@]}"; do
|
|
if [ -n "${!tool}" ]; then
|
|
IMAGE_NAME="${IMAGE_NAME}-${tool,,}-${!tool}"
|
|
fi
|
|
done
|
|
echo "${IMAGE_NAME:1}"
|
|
}
|