Skip to content

Commit

Permalink
Merge pull request #351 from zmiklank/multi_fedora_build
Browse files Browse the repository at this point in the history
allow building for any specified $OS
  • Loading branch information
phracek authored Sep 12, 2023
2 parents 7e222b8 + ea89b5f commit 19ea464
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,22 +212,10 @@ echo "Built versions are: $dirs"

for dir in ${dirs}; do
pushd "${dir}" > /dev/null
if [ "$OS" == "rhel8" ] || [ "$OS" == "rhel8-candidate" ]; then
docker_build_with_version Dockerfile.rhel8
elif [ "$OS" == "rhel9" ] || [ "$OS" == "rhel9-candidate" ]; then
docker_build_with_version Dockerfile.rhel9
elif [ "$OS" == "rhel7" ] || [ "$OS" == "rhel7-candidate" ]; then
docker_build_with_version Dockerfile.rhel7
elif [ "$OS" == "fedora" ] || [ "$OS" == "fedora-candidate" ]; then
docker_build_with_version Dockerfile.fedora
elif [ "$OS" == "centos6" ] || [ "$OS" == "centos6-candidate" ]; then
docker_build_with_version Dockerfile.centos6
elif [ "$OS" == "c8s" ] || [ "$OS" == "c8s-candidate" ]; then
docker_build_with_version Dockerfile.c8s
elif [ "$OS" == "c9s" ] || [ "$OS" == "c9s-candidate" ]; then
docker_build_with_version Dockerfile.c9s
else
if [ "$OS" == "centos7" ] || [ "$OS" == "centos7-candidate" ]; then
docker_build_with_version Dockerfile
else
docker_build_with_version Dockerfile."$OS"
fi

popd > /dev/null
Expand Down

0 comments on commit 19ea464

Please sign in to comment.