2023-01-25 05:51:58 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-08-19 19:54:11 +02:00
|
|
|
default_os=${default_os:-ubuntu}
|
|
|
|
default_os_codename=${default_os_codename:-bionic}
|
2021-01-19 10:44:32 +01:00
|
|
|
|
|
|
|
os=${1:-$default_os}
|
2021-01-28 10:10:46 +01:00
|
|
|
os_codename=${2:-$default_os_codename}
|
2022-08-19 19:54:11 +02:00
|
|
|
build_tag="$3"
|
2021-09-07 14:11:21 +02:00
|
|
|
if [[ -n "$build_tag" ]]; then
|
|
|
|
build_tag_for_images="_${build_tag#+}"
|
|
|
|
build_debian_revision="$(echo $build_tag | tr _ -)"
|
|
|
|
fi
|
2021-01-28 10:10:46 +01:00
|
|
|
os_image="$os:$os_codename"
|
2021-01-19 10:44:32 +01:00
|
|
|
|
|
|
|
echo "Building for $os_image"
|