Skip to content

Commit

Permalink
Load Docker secrets in tests and the gingr command
Browse files Browse the repository at this point in the history
  • Loading branch information
danschmidt5189 committed Dec 19, 2023
1 parent 68642b6 commit 43df7fc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ source 'https://rubygems.org'

ruby File.read('.ruby-version')

gem "berkeley_library-docker", "~> 0.2.0"
gem 'berkeley_library-logging', '~> 0.2'
gem 'faraday-net_http_persistent', '~> 2.0'
gem 'geo_combine'
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ GEM
public_suffix (>= 2.0.2, < 6.0)
amazing_print (1.5.0)
base64 (0.1.1)
berkeley_library-docker (0.2.0)
berkeley_library-logging (0.2.7)
activesupport (>= 6)
amazing_print (~> 1.1)
Expand Down Expand Up @@ -174,6 +175,7 @@ PLATFORMS
x86_64-linux

DEPENDENCIES
berkeley_library-docker (~> 0.2.0)
berkeley_library-logging (~> 0.2)
faraday-net_http_persistent (~> 2.0)
geo_combine
Expand Down
4 changes: 3 additions & 1 deletion bin/gingr
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env ruby
require_relative '../lib/gingr'
require 'berkeley_library/docker'
BerkeleyLibrary::Docker::Secret.load_secrets!

require_relative '../lib/gingr'
Gingr::Cli.start(ARGV)
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# frozen_string_literal: true
require 'berkeley_library/docker'
BerkeleyLibrary::Docker::Secret.load_secrets!

$LOAD_PATH.unshift(File.expand_path('../lib', __FILE__))
require 'gingr'

Expand Down

0 comments on commit 43df7fc

Please sign in to comment.