#7447 Adding +x permission to sync-latest-container-base-image.sh script
Merged 5 years ago by kellin. Opened 6 years ago by mohanboddu.
mohanboddu/releng fix-file-perm  into  master

@@ -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

1 new commit added

  • Since F28 we have Fedora-Container-Base image
6 years ago

Second commit is for syncing Fedora-Container-Base image instead of Fedora-Docker-Base image as the later one is changed to the earlier one from 28 and above.

the awk command is broken here (there is too much whitespace)

:thumbsdown: see my comment to the commit

2 new commits added

  • Since F28 we have Fedora-Container-Base image
  • Adding +x permission to sync-latest-container-base-image.sh script
5 years ago

rebased onto 8031162

5 years ago

1 new commit added

  • Fedora 28 is released now
5 years ago

Third commit - Fedora 28 is released now, hence updated the current_stable variable which will tag fedora:latest to f28 images.

Pull-Request has been merged by kellin

5 years ago
Metadata