Skip to content

Commit

Permalink
build: Use /etc/os-release rather than hardcoding distro version
Browse files Browse the repository at this point in the history
So we have one fewer random place to change when bumping Fedora
versions.  Prep for rebasing on F31.
  • Loading branch information
cgwalters authored and jlebon committed Oct 23, 2019
1 parent 563d27e commit bee3ec5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ fi
set -x
srcdir=$(pwd)

release="30"

configure_yum_repos() {
local version_id
version_id=$(. /etc/os-release && echo ${VERSION_ID})
# Add continuous tag for latest build tools and mark as required so we
# can depend on those latest tools being available in all container
# builds.
echo -e "[f$release-coreos-continuous]\nenabled=1\nmetadata_expire=1m\nbaseurl=https://kojipkgs.fedoraproject.org/repos-dist/f$release-coreos-continuous/latest/\$basearch/\ngpgcheck=0\nskip_if_unavailable=False\n" > /etc/yum.repos.d/coreos.repo
echo -e "[f${version_id}-coreos-continuous]\nenabled=1\nmetadata_expire=1m\nbaseurl=https://kojipkgs.fedoraproject.org/repos-dist/f${version_id}-coreos-continuous/latest/\$basearch/\ngpgcheck=0\nskip_if_unavailable=False\n" > /etc/yum.repos.d/coreos.repo

}

Expand Down

0 comments on commit bee3ec5

Please sign in to comment.