Skip to content

Commit

Permalink
Added rake tasks for Docker [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed May 27, 2023
1 parent 34fad29 commit 4511982
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,19 @@ Rake::TestTask.new(:test) do |t|
end

task default: :test

namespace :docker do
task :build do
require_relative "lib/pgslice/version"

system "docker build --pull --no-cache --platform linux/amd64 -t ankane/pgslice:latest .", exception: true
system "docker build --platform linux/amd64 -t ankane/pgslice:v#{PgSlice::VERSION} .", exception: true
end

task :release do
require_relative "lib/pgslice/version"

system "docker push ankane/pgslice:latest", exception: true
system "docker push ankane/pgslice:v#{PgSlice::VERSION}", exception: true
end
end

0 comments on commit 4511982

Please sign in to comment.