Sha256: 4cc44f301dc09071a10a0b6e5204c6133be14aaee66d0064805ca9189e80d8b6
Contents?: true
Size: 1.4 KB
Versions: 19
Compression:
Stored size: 1.4 KB
Contents
require "pact_broker/client/tasks" require "pact_broker/client/git" PactBroker::Client::PublicationTask.new(:localhost) do | task | require 'pact_broker/client/version' task.tag = `git rev-parse --abbrev-ref HEAD`.strip task.consumer_version = PactBroker::Client::VERSION task.pact_broker_base_url = "http://localhost:9292" task.build_url = "http://ci" # task.branch = "main" end PactBroker::Client::PublicationTask.new(:remote) do | task | require 'pact_broker/client/version' task.tag = `git rev-parse --abbrev-ref HEAD`.strip task.consumer_version = PactBroker::Client::VERSION task.pact_broker_base_url = "https://test.pact.dius.com.au" task.pact_broker_basic_auth = { username: ENV.fetch('PACT_BROKER_USERNAME'), password: ENV.fetch('PACT_BROKER_PASSWORD') } end PactBroker::Client::PublicationTask.new(:pactflow) do | task | version = ENV.fetch('GITHUB_SHA') branch = ENV.fetch('GITHUB_REF').gsub("refs/heads/", "") feature = ENV.fetch('TEST_FEATURE', '') tag = branch if feature != '' version = "#{version}+#{feature}" tag = "#{tag}+#{feature}" end require 'pact_broker/client/version' task.auto_detect_version_properties = false task.tags = [tag] task.branch = nil task.consumer_version = version task.pact_broker_base_url = "https://pact-oss.pactflow.io" task.pact_broker_token = ENV['PACT_BROKER_TOKEN'] task.build_url = PactBroker::Client::Git.build_url end
Version data entries
19 entries across 19 versions & 1 rubygems