Last active
July 23, 2018 16:01
-
-
Save sjenning/a665a7505f8f4661ab12f7c86293c2ab to your computer and use it in GitHub Desktop.
Get latest repo and packge version for origin upstream builds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
#set -x | |
# tree can be the name of a branch (master, release-3.8, etc) or a release tag (v3.9.0-alpha.4) | |
TREE="$1" | |
REPOURL=$(curl -s "https://storage.googleapis.com/origin-ci-test/releases/openshift/origin/$TREE/.latest-rpms") | |
echo "copy to following lines into your openshift-ansible inventory file" | |
echo "" | |
echo "openshift_additional_repos=[{'id': 'origin', 'name': 'origin', 'baseurl': '$REPOURL', 'enabled': 1, 'gpgcheck': 0}]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment