Sha256: afc3e67db337ab0b336d60f2b598933a553362a925ea706dbc93b4db2b7dc15d

Contents?: true

Size: 693 Bytes

Versions: 14

Compression:

Stored size: 693 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rake/testtask'
require 'rake/clean'

CLEAN.concat FileList[
  'docker/*.gem',
  'pkg'
]

Rake::TestTask.new(:test) do |t|
  t.libs.push('lib', 'test')
  t.test_files = FileList['test/**/test_*.rb']
  t.verbose = true
  t.warning = true
end

task default: [:test]

namespace :docker do
  desc 'Build docker image'
  task :build, [:tag] => :build do |t, args|
    raise 'Argument `tag` was not provided.' unless args.tag

    cp Dir['pkg/fluent-plugin-k8s-metrics-agg-*.gem'], 'docker/'
    sh "docker build  --no-cache --pull --build-arg VERSION=$(cat VERSION) -t splunk/fluent-plugin-k8s-metrics-agg:#{args.tag} ./docker"
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fluent-plugin-k8s-metrics-agg-1.2.3 Rakefile
fluent-plugin-k8s-metrics-agg-1.2.2 Rakefile
fluent-plugin-k8s-metrics-agg-1.2.1 Rakefile
fluent-plugin-k8s-metrics-agg-1.2.0 Rakefile
fluent-plugin-k8s-metrics-agg-1.1.12 Rakefile
fluent-plugin-k8s-metrics-agg-1.1.11 Rakefile
fluent-plugin-k8s-metrics-agg-1.1.10 Rakefile
fluent-plugin-k8s-metrics-agg-1.1.9 Rakefile
fluent-plugin-k8s-metrics-agg-1.1.8 Rakefile
fluent-plugin-k8s-metrics-agg-1.1.7 Rakefile
fluent-plugin-k8s-metrics-agg-1.1.6 Rakefile
fluent-plugin-k8s-metrics-agg-1.1.5 Rakefile
fluent-plugin-k8s-metrics-agg-1.1.4 Rakefile
fluent-plugin-k8s-metrics-agg-1.1.3 Rakefile