Skip to content

Commit

Permalink
Fix rhel9 docker container names
Browse files Browse the repository at this point in the history
  • Loading branch information
micprog committed Dec 27, 2023
1 parent 0f840f0 commit f3645fa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/scripts/gen_dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ if [ $(echo $full_tgtname | cut -d ':' -f 1) = "rhel" ]; then
export maj_version=$(echo $full_tgtname | cut -d ':' -f 2)
export full_tgtname=redhat/ubi${maj_version:0:1}:$(echo $full_tgtname | cut -d ':' -f 2)
if [ $(echo $full_tgtname | cut -d ':' -f 2 | cut -d '.' -f 1) = '9' ]; then
export full_tgtname=$full_tgtname.0
if [ $(echo $full_tgtname | cut -d ':' -f 2 | cut -d '.' -f 2) = '0' ]; then
export full_tgtname=$full_tgtname.0
fi
if [ $(echo $full_tgtname | cut -d ':' -f 2 | cut -d '.' -f 2) = '1' ]; then
export full_tgtname=$full_tgtname.0
fi
fi
fi

Expand Down

0 comments on commit f3645fa

Please sign in to comment.