Skip to content

Commit

Permalink
Add Docker patch version to the library
Browse files Browse the repository at this point in the history
  • Loading branch information
Strech committed Nov 20, 2022
1 parent c921fd6 commit 0071d5d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ require 'fileutils'
require_relative 'lib/sidekiq/prometheus/exporter/version'

VERSION = Sidekiq::Prometheus::Exporter::VERSION
DOCKER_PATCH_VERSION = Sidekiq::Prometheus::Exporter::DOCKER_PATCH_VERSION

def execute(command)
output = `#{command}`
Expand All @@ -27,7 +28,7 @@ end
namespace :docker do
desc "Release new Docker image strech/sidekiq-prometheus-exporter:#{VERSION} (latest)"
task :release, %i(patch) do |_, args|
version = [VERSION, args.patch].compact.join('-')
version = [VERSION, args.fetch(:patch, DOCKER_PATCH_VERSION)].compact.join('-')

Rake::Task['docker:build'].invoke(version)
Rake::Task['docker:push'].invoke(version)
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.7.5-alpine
FROM ruby:2.7.6-alpine

LABEL maintainer="Sergey Fedorov <[email protected]>"
LABEL repository="strech/sidekiq-prometheus-exporter"
Expand Down
1 change: 1 addition & 0 deletions lib/sidekiq/prometheus/exporter/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module Sidekiq
module Prometheus
module Exporter
VERSION = '0.1.17'.freeze
DOCKER_PATCH_VERSION = '1'.freeze
end
end
end

0 comments on commit 0071d5d

Please sign in to comment.