Skip to content

Commit

Permalink
Ensure system gem updates in docker image (#115)
Browse files Browse the repository at this point in the history
* Ensure system gem updates in docker image

* Bump version

* Add ostruct
  • Loading branch information
tubaxenor authored Nov 26, 2024
1 parent 120b18b commit 47a2fb1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM ruby:3.3
ARG version

RUN if [ -z ${version} ]; then \
RUN gem update --system --no-document && \
if [ -z "$version" ]; then \
gem install buildkite-builder; \
else \
gem install buildkite-builder -v ${version}; \
gem install buildkite-builder -v "$version"; \
fi

CMD buildkite-builder run
CMD ["buildkite-builder", "run"]
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.15.0
4.15.1
1 change: 1 addition & 0 deletions buildkite-builder.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "rake"
spec.add_development_dependency "debug"
spec.add_development_dependency "rspec"
spec.add_development_dependency "ostruct"
spec.add_development_dependency "webmock"
end
1 change: 1 addition & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require 'bundler/setup'
require 'buildkite-builder'
require 'debug'
require 'ostruct'
require 'webmock/rspec'

Dir[File.expand_path('support/**/*.rb', __dir__)].sort.each { |f| require_relative f }
Expand Down

0 comments on commit 47a2fb1

Please sign in to comment.