Skip to content

Commit

Permalink
Merge branch 'main' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
grooverdan committed Oct 26, 2024
2 parents 61a313a + bb4e690 commit bfebfc6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/docker-library-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ else
container_tag=$master_branch
fi
if [ ! -d "mariadb-docker/$master_branch" ]; then
branch=main
master_branch=main
fi
# Container tags must be lower case.
container_tag=${container_tag,,*}
Expand All @@ -58,7 +58,7 @@ case "${buildername#*ubuntu-}" in
;;
*-rhel-9-rpm-autobake)
ubi=-ubi
branch=${branch}-ubi
master_branch=${master_branch}-ubi
;;
*)
echo "unknown base buildername $buildername"
Expand All @@ -72,9 +72,9 @@ declare -a annotations=(
"--annotation" "org.opencontainers.image.authors=MariaDB Foundation"
"--annotation" "org.opencontainers.image.documentation=https://hub.docker.com/_/mariadb"
"--annotation" "org.opencontainers.image.source=https://github.com/MariaDB/mariadb-docker/tree/$(
cd "mariadb-docker/$branch"
cd "mariadb-docker/$master_branch"
git rev-parse HEAD
)/$branch"
)/$master_branch"
"--annotation" "org.opencontainers.image.licenses=GPL-2.0"
"--annotation" "org.opencontainers.image.title=MariaDB Server $container_tag CI build"
"--annotation" "org.opencontainers.image.description=This is not a Release.\nBuild of the MariaDB Server from CI as of commit $commit"
Expand Down Expand Up @@ -103,7 +103,7 @@ build() {
--arch "$@" \
--build-arg MARIADB_VERSION="$mariadb_version" \
"${annotations[@]}" \
"mariadb-docker/$branch"
"mariadb-docker/$master_branch"
}

else
Expand All @@ -117,7 +117,7 @@ build() {
--build-arg REPOSITORY="[trusted=yes] $artifacts_url/$tarbuildnum/${buildername}/debs ./\n$galera_repo" \
--build-arg MARIADB_VERSION="1:$mariadb_version+maria~$pkgver" \
"${annotations[@]}" \
"mariadb-docker/$branch"
"mariadb-docker/$master_branch"
}
fi

Expand Down

0 comments on commit bfebfc6

Please sign in to comment.