Skip to content

Instantly share code, notes, and snippets.

@sjenning
Last active July 23, 2018 16:01
Show Gist options
  • Save sjenning/a665a7505f8f4661ab12f7c86293c2ab to your computer and use it in GitHub Desktop.
Save sjenning/a665a7505f8f4661ab12f7c86293c2ab to your computer and use it in GitHub Desktop.
Get latest repo and packge version for origin upstream builds
#!/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