Rakefile in sidekiq-prometheus-exporter-0.2.0 vs Rakefile in sidekiq-prometheus-exporter-0.2.1

- old
+ new

@@ -42,21 +42,24 @@ task :build, %i(version) do |_, args| args.with_defaults(version: docker_version) image = 'strech/sidekiq-prometheus-exporter' Dir.chdir(File.expand_path('./docker')) do - execute("docker build -t #{image}:#{args.version} -t #{image}:latest .") + execute("docker buildx build --platform linux/amd64,linux/arm64 -t #{image}:#{args.version} -t #{image}:latest .") end puts "Successfully built strech/sidekiq-prometheus-exporter and tagged #{args.version} (latest)" end task :push, %i(version) do |_, args| args.with_defaults(version: docker_version) image = 'strech/sidekiq-prometheus-exporter' - execute("docker push #{image}:#{args.version}") - execute("docker push #{image}:latest") + # rubocop:disable Layout/LineLength + Dir.chdir(File.expand_path('./docker')) do + execute("docker buildx build --push --platform linux/amd64,linux/arm64 -t #{image}:#{args.version} -t #{image}:latest .") + end + # rubocop:enable Layout/LineLength puts "Successfully pushed strech/sidekiq-prometheus-exporter:#{args.version} (latest)" end end