Skip to content

Commit c9a6c24

Browse files
committed
(PA-8445) Use Artifactory as sole gem source
Prior to this, our internal Artifactory mirror, which hosts Puppet Core releases, was added as a gem source, but came after the default location of rubygems.org. This commit updates the nightly gem test workflow to add Artifactory and remove rubygems.org in order to make sure that the Puppet nightly gem correctly installs the latest Facter as its dependency from Artifactory instead of the outdated last publicly-released Facter from rubygems.org.
1 parent b03a4eb commit c9a6c24

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/unit_tests_with_nightly_puppet_gem.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ jobs:
5151
run: |
5252
${{ matrix.extra_steps }}
5353
curl https://artifactory.delivery.puppetlabs.net/artifactory/internal_nightly__local/downloads/gems/puppet${{ matrix.puppet_version }}-nightly/${{ matrix.gem_file }} --output puppet.gem --location
54-
gem install puppet.gem -N --source https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/
54+
gem sources --add https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/
55+
gem sources --remove https://rubygems.org/
56+
gem install puppet.gem -N
5557
5658
- name: Prepare testing environment with bundler
5759
env:

0 commit comments

Comments
 (0)