| |
@@ -38,12 +38,12 @@
|
| |
}
|
| |
# This is the release of Fedora that is currently stable, it will define if we
|
| |
# need to move the fedora:latest tag
|
| |
- current_stable="27"
|
| |
+ current_stable="28"
|
| |
# Define what is rawhide so we know to push that tag
|
| |
current_rawhide="29"
|
| |
# Sanity checking
|
| |
# FIXME - Have to update this regex every time we drop a new Fedora Release
|
| |
- if ! [[ "${1}" =~ [24|25|26|27|28] ]];
|
| |
+ if ! [[ "${1}" =~ [24|25|26|27|28|29] ]];
|
| |
then
|
| |
printf "ERROR: FEDORA_RELEASE missing or invalid\n"
|
| |
f_help
|
| |
@@ -65,7 +65,12 @@
|
| |
#
|
| |
# Need fXX-updates-canddiate to get actual latest nightly
|
| |
#
|
| |
- build_name=$(koji -q latest-build --type=image f${1}-updates-candidate Fedora-Docker-Base | awk '{print $1}')
|
| |
+ if [[ "${1}" > 27 ]];
|
| |
+ then
|
| |
+ build_name=$(koji -q latest-build --type=image f${1}-updates-candidate Fedora-Container-Base | awk '{print $1}')
|
| |
+ else
|
| |
+ build_name=$(koji -q latest-build --type=image f${1}-updates-candidate Fedora-Docker-Base | awk '{print $1}')
|
| |
+ fi
|
| |
minimal_build_name=$(koji -q latest-build --type=image f${1}-updates-candidate Fedora-Container-Minimal-Base | awk '{print $1}')
|
| |
if [[ -n ${build_name} ]]; then
|
| |
# Download the image
|
| |
Signed-off-by: Mohan Boddu mboddu@redhat.com