From 760ccc210a608dd66fa7aa4406e472faef54ea07 Mon Sep 17 00:00:00 2001 From: Gregory Schofield Date: Mon, 12 Dec 2022 20:10:16 -0500 Subject: Use artifactory rubygems proxy Signed-off-by: Gregory Schofield --- Gemfile | 6 +++++- omnibus/Gemfile | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 052b21cf6b..cf681c0fc5 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,8 @@ -source "https://rubygems.org" +if ENV.fetch("OMNIBUS_USE_INTERNAL_SOURCES", false) + source "https://artifactory-internal.ps.chef.co/artifactory/rubygems-proxy" +else + source "https://rubygems.org" +end gem "chef", path: "." diff --git a/omnibus/Gemfile b/omnibus/Gemfile index a8d16ac939..3f1a561271 100644 --- a/omnibus/Gemfile +++ b/omnibus/Gemfile @@ -1,4 +1,8 @@ -source "https://rubygems.org" +if ENV.fetch("OMNIBUS_USE_INTERNAL_SOURCES", false) + source "https://artifactory-internal.ps.chef.co/artifactory/rubygems-proxy" +else + source "https://rubygems.org" +end gem "omnibus", github: ENV.fetch("OMNIBUS_GITHUB_REPO", "chef/omnibus"), branch: ENV.fetch("OMNIBUS_GITHUB_BRANCH", "main") -- cgit v1.2.1