Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDEV-28628: new debian package version name #6

Merged
merged 1 commit into from
Jun 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions scripts/docker-library-build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,29 @@ container_tag=${container_tag,,*}
case "${buildername#*ubuntu-}" in
2204-deb-autobake)
base=jammy
pkgver=ubu2204
;;
2004-deb-autobake)
base=focal
;;
1804-deb-autobake)
base=bionic
pkgver=ubu2204
;;
*)
echo "unknown base buildername $buildername"
exit 0
;;
esac

# gradually exclude for other major version as
# https://github.com/MariaDB/server/commit/c168e16782fc449f61412e5afc1c01d59b77c675
# is merged up.
case "$container_tag" in
10.3)
;;
*)
pkgver=$base
;;
esac

buildernamebase=${buildername#*-}
builderarch=${buildername%%-*}

Expand Down Expand Up @@ -87,7 +97,7 @@ build() {
shift
t=$(mktemp)
buildah bud --layers "$@" --build-arg REPOSITORY="[trusted=yes] https://ci.mariadb.org/$tarbuildnum/${arch}-${buildernamebase}/debs ./" \
--build-arg MARIADB_VERSION="1:$mariadb_version+maria~$base" \
--build-arg MARIADB_VERSION="1:$mariadb_version+maria~$pkgver" \
"${annotations[@]}" \
"mariadb-docker/$master_branch" | tee "${t}"
image=$(tail -n 1 "$t")
Expand Down